Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 113.2 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 46.11 MB / 345 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001609, allocations: 76.2 kB / 481.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.367, allocations: 62.45 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001566/0.3686, allocations: 481.4 kB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.3719, allocations: 2.404 MB / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.273e-05/0.3719, allocations: 1.375 kB / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.372, allocations: 0 / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-06/0.372, allocations: 0 / 0.5344 GB, free: 11.35 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002448/0.3744, allocations: 1.156 MB / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.34e-05/0.3745, allocations: 1.062 kB / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.545e-05/0.3745, allocations: 1.438 kB / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.942e-05/0.3746, allocations: 5.281 kB / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.049e-05/0.3746, allocations: 0 / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.67e-06/0.3746, allocations: 0 / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.3762, allocations: 1.035 MB / 0.5366 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-06/0.3762, allocations: 1.281 kB / 0.5366 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.926e-05/0.3762, allocations: 3.984 kB / 0.5366 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005757/0.3768, allocations: 447.2 kB / 0.537 GB, free: 9.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3768, allocations: 1.031 kB / 0.537 GB, free: 9.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3768, allocations: 0 / 0.537 GB, free: 9.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.3768, allocations: 0 / 0.537 GB, free: 9.797 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004052/0.3772, allocations: 435.8 kB / 0.5374 GB, free: 9.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.3773, allocations: 13.19 kB / 0.5374 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.92e-05/0.3773, allocations: 2 kB / 0.5375 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.798e-05/0.3774, allocations: 164.2 kB / 0.5376 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3774, allocations: 1.562 kB / 0.5376 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.313e-06/0.3774, allocations: 384 / 0.5376 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.819e-05/0.3775, allocations: 36.39 kB / 0.5376 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3775, allocations: 0 / 0.5376 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.3775, allocations: 9.062 kB / 0.5377 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3775, allocations: 0 / 0.5377 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.7e-05/0.3776, allocations: 1.156 kB / 0.5377 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.3777, allocations: 152 kB / 0.5378 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.341e-05/0.3777, allocations: 19.7 kB / 0.5378 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.41e-05/0.3778, allocations: 6.078 kB / 0.5378 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.3778, allocations: 1.094 kB / 0.5378 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.3778, allocations: 65.3 kB / 0.5379 GB, free: 8.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3778, allocations: 0 / 0.5379 GB, free: 8.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001486/0.378, allocations: 71.3 kB / 0.538 GB, free: 8.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.378, allocations: 77.11 kB / 0.538 GB, free: 8.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.618e-05/0.3781, allocations: 90.95 kB / 0.5381 GB, free: 8.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.3781, allocations: 25.7 kB / 0.5381 GB, free: 8.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.334e-05/0.3781, allocations: 80.14 kB / 0.5382 GB, free: 8.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.3781, allocations: 5.188 kB / 0.5382 GB, free: 8.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.3782, allocations: 16.06 kB / 0.5382 GB, free: 8.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.3783, allocations: 314.8 kB / 0.5385 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-06/0.3783, allocations: 5.25 kB / 0.5385 GB, free: 8.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.6e-06/0.3783, allocations: 1.312 kB / 0.5385 GB, free: 8.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.283e-05/0.3784, allocations: 63.64 kB / 0.5386 GB, free: 8.004 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3784, allocations: 0 / 0.5386 GB, free: 8.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.366e-05/0.3784, allocations: 62.38 kB / 0.5387 GB, free: 7.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.3785, allocations: 35.78 kB / 0.5387 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3785, allocations: 3.938 kB / 0.5387 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3785, allocations: 0.9688 kB / 0.5387 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.3785, allocations: 4.094 kB / 0.5387 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.3785, allocations: 0 / 0.5387 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.545e-05/0.3785, allocations: 5.094 kB / 0.5387 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.3786, allocations: 0.9688 kB / 0.5387 GB, free: 7.891 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.233e-05/0.3787, allocations: 133.5 kB / 0.5388 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.3787, allocations: 1.188 kB / 0.5388 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.238e-06/0.3787, allocations: 7.062 kB / 0.5388 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.3787, allocations: 1.188 kB / 0.5388 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3787, allocations: 0 / 0.5388 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.202e-05/0.3787, allocations: 90.12 kB / 0.5389 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.3787, allocations: 1.062 kB / 0.5389 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-06/0.3788, allocations: 3.938 kB / 0.5389 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.171e-05/0.3788, allocations: 5.203 kB / 0.5389 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001147/0.3789, allocations: 199 kB / 0.5391 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001312/0.379, allocations: 239.9 kB / 0.5394 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.581e-05/0.3791, allocations: 5.219 kB / 0.5394 GB, free: 7.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.53e-05/0.3791, allocations: 80.36 kB / 0.5394 GB, free: 7.09 MB / 398.1 MB Notification: Performance of Backend: time 2.8e-07/0.3791, allocations: 0 / 0.5394 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009632/0.3801, allocations: 422.1 kB / 0.5398 GB, free: 6.832 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003407/0.3804, allocations: 0.5785 MB / 0.5404 GB, free: 6.199 MB / 398.1 MB Notification: Performance of Templates: time 0.009103/0.3895, allocations: 4.622 MB / 0.5449 GB, free: 3.668 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches