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.0009635/0.0009635, allocations: 115.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.206/0.206, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 75.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3305, allocations: 62.44 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001494/0.332, allocations: 474.6 kB / 0.5321 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003346/0.3354, allocations: 2.411 MB / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.268e-05/0.3355, allocations: 0 / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.144e-05/0.3355, allocations: 0 / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.037e-06/0.3355, allocations: 1.188 kB / 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.002794/0.3383, allocations: 1.152 MB / 0.5356 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.089e-05/0.3384, allocations: 9.359 kB / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.49e-05/0.3384, allocations: 1.375 kB / 0.5356 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.372e-05/0.3384, allocations: 3.938 kB / 0.5356 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.903e-05/0.3385, allocations: 1.375 kB / 0.5356 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-06/0.3385, allocations: 0 / 0.5356 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001738/0.3402, allocations: 1.035 MB / 0.5366 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.185e-06/0.3402, allocations: 4 kB / 0.5366 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.172e-05/0.3403, allocations: 1.094 kB / 0.5366 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006421/0.3409, allocations: 446.6 kB / 0.537 GB, free: 9.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3409, allocations: 1.406 kB / 0.537 GB, free: 9.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3409, allocations: 0 / 0.537 GB, free: 9.793 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.3409, allocations: 0 / 0.537 GB, free: 9.793 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.0004137/0.3414, allocations: 431.6 kB / 0.5374 GB, free: 9.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3414, allocations: 13.33 kB / 0.5374 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.3414, allocations: 4.875 kB / 0.5375 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.629e-05/0.3415, allocations: 169.3 kB / 0.5376 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3415, allocations: 384 / 0.5376 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.3416, allocations: 5.656 kB / 0.5376 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.435e-05/0.3416, allocations: 32.45 kB / 0.5376 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.3416, allocations: 3.938 kB / 0.5377 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.3417, allocations: 0 / 0.5377 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.3417, allocations: 1.156 kB / 0.5377 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.889e-05/0.3417, allocations: 4.969 kB / 0.5377 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001165/0.3418, allocations: 146.6 kB / 0.5378 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.557e-05/0.3419, allocations: 24.83 kB / 0.5378 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.658e-05/0.3419, allocations: 9.797 kB / 0.5378 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.3419, allocations: 1 kB / 0.5378 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.3419, allocations: 61.36 kB / 0.5379 GB, free: 8.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.342, allocations: 0 / 0.5379 GB, free: 8.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001724/0.3421, allocations: 66.8 kB / 0.538 GB, free: 8.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.3422, allocations: 82.64 kB / 0.538 GB, free: 8.625 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.354e-05/0.3422, allocations: 89.86 kB / 0.5381 GB, free: 8.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.3423, allocations: 26.95 kB / 0.5381 GB, free: 8.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.3423, allocations: 80.14 kB / 0.5382 GB, free: 8.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.3423, allocations: 0 / 0.5382 GB, free: 8.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.3423, allocations: 16.31 kB / 0.5382 GB, free: 8.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.439e-05/0.3424, allocations: 312.2 kB / 0.5385 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.269e-05/0.3425, allocations: 3.984 kB / 0.5385 GB, free: 8.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.754e-06/0.3425, allocations: 9.375 kB / 0.5385 GB, free: 8.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.621e-05/0.3425, allocations: 60.55 kB / 0.5386 GB, free: 8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3425, allocations: 0 / 0.5386 GB, free: 8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.542e-05/0.3426, allocations: 61.56 kB / 0.5387 GB, free: 7.934 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.3426, allocations: 35.06 kB / 0.5387 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.3427, allocations: 5.281 kB / 0.5387 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3427, allocations: 0 / 0.5387 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3427, allocations: 0 / 0.5387 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3427, allocations: 1.375 kB / 0.5387 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.59e-05/0.3427, allocations: 4.094 kB / 0.5387 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.3427, allocations: 1.25 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 7.548e-05/0.3428, allocations: 133 kB / 0.5388 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.3428, allocations: 5.125 kB / 0.5388 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.034e-05/0.3428, allocations: 8.25 kB / 0.5388 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.3428, allocations: 0 / 0.5388 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.3428, allocations: 0 / 0.5388 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.3429, allocations: 86.41 kB / 0.5389 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.3429, allocations: 3.938 kB / 0.5389 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-06/0.3429, allocations: 9.375 kB / 0.5389 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.303e-05/0.3429, allocations: 0 / 0.5389 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001141/0.343, allocations: 191.3 kB / 0.5391 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001376/0.3432, allocations: 247.8 kB / 0.5394 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.859e-05/0.3432, allocations: 3.031 kB / 0.5394 GB, free: 7.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.613e-05/0.3433, allocations: 79.34 kB / 0.5394 GB, free: 7.09 MB / 398.1 MB Notification: Performance of Backend: time 2.51e-07/0.3433, allocations: 0 / 0.5394 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.3443, allocations: 421 kB / 0.5398 GB, free: 6.836 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003386/0.3447, allocations: 0.5742 MB / 0.5404 GB, free: 6.207 MB / 398.1 MB Notification: Performance of Templates: time 0.008077/0.3527, allocations: 4.623 MB / 0.5449 GB, free: 3.691 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