Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008843/0.0008843, allocations: 95.78 kB / 17 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009412/0.0009413, allocations: 181 kB / 17.89 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 241.9 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2161/0.2161, allocations: 44.24 MB / 337.3 MB, free: 2.543 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003564, allocations: 5.531 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1387, allocations: 61.93 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0008116/0.1396, allocations: 193.2 kB / 471.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003575/0.1432, allocations: 2.128 MB / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.136e-05/0.1433, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.1433, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.743e-06/0.1433, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.002643/0.1459, allocations: 0.8991 MB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.129e-05/0.146, allocations: 4 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.696e-05/0.1461, allocations: 0 / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.62e-05/0.1461, allocations: 0 / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.245e-05/0.1461, allocations: 0 / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.131e-06/0.1461, allocations: 0 / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.148, allocations: 0.8975 MB / 475.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.148, allocations: 4 kB / 475.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.476e-05/0.148, allocations: 29.64 kB / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005498/0.1486, allocations: 259.5 kB / 476 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.1486, allocations: 7.984 kB / 476 MB, free: 9.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1486, allocations: 0 / 476 MB, free: 9.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1486, allocations: 0 / 476 MB, free: 9.262 MB / 350.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.0005348/0.1492, allocations: 423.3 kB / 476.4 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.1492, allocations: 12.03 kB / 476.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.1493, allocations: 0 / 476.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1494, allocations: 163.1 kB / 476.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1494, allocations: 3.938 kB / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-06/0.1494, allocations: 0 / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.1495, allocations: 37.64 kB / 476.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1496, allocations: 0 / 476.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.1496, allocations: 0 / 476.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1496, allocations: 0 / 476.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.078e-05/0.1496, allocations: 7.938 kB / 476.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.1498, allocations: 145.7 kB / 476.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.975e-05/0.1498, allocations: 18.58 kB / 476.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.837e-05/0.1498, allocations: 12.94 kB / 476.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.029e-06/0.1499, allocations: 0 / 476.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.1499, allocations: 64.22 kB / 476.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1499, allocations: 0 / 476.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001891/0.1501, allocations: 63.34 kB / 476.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.1502, allocations: 81.23 kB / 477 MB, free: 8.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.097e-05/0.1502, allocations: 93.84 kB / 477.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.1503, allocations: 25.7 kB / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.774e-05/0.1503, allocations: 80.14 kB / 477.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.1503, allocations: 4 kB / 477.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-06/0.1503, allocations: 0 / 477.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1505, allocations: 314.8 kB / 477.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-06/0.1505, allocations: 0 / 477.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.1505, allocations: 0 / 477.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/0.1505, allocations: 33.77 kB / 477.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1505, allocations: 0 / 477.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001006/0.1507, allocations: 67.33 kB / 477.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.1507, allocations: 29.7 kB / 477.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1507, allocations: 0 / 477.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1507, allocations: 3.953 kB / 477.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.684e-06/0.1507, allocations: 0 / 477.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.1507, allocations: 3.984 kB / 477.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.176e-05/0.1508, allocations: 4.281 kB / 477.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.1508, allocations: 0 / 477.7 MB, free: 7.348 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.895e-05/0.1509, allocations: 144 kB / 477.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.1509, allocations: 4 kB / 477.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.18e-05/0.1509, allocations: 11.06 kB / 477.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1509, allocations: 7.891 kB / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.151, allocations: 0 / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.151, allocations: 0 / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.976e-05/0.1511, allocations: 149.6 kB / 478 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1511, allocations: 0 / 478 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.129e-05/0.1511, allocations: 8 kB / 478 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1511, allocations: 4 kB / 478 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1511, allocations: 0 / 478 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1511, allocations: 3.984 kB / 478 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1511, allocations: 3.953 kB / 478 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.1512, allocations: 94.69 kB / 478.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.666e-05/0.1513, allocations: 77.11 kB / 478.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.1513, allocations: 3.984 kB / 478.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.1513, allocations: 4.031 kB / 478.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.1514, allocations: 4 kB / 478.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.1514, allocations: 3.953 kB / 478.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.095e-05/0.1514, allocations: 75.28 kB / 478.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1514, allocations: 0 / 478.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005019/0.1519, allocations: 140 kB / 478.4 MB, free: 6.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007708/0.1527, allocations: 361.8 kB / 478.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.468e-05/0.1528, allocations: 59.41 kB / 478.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1528, allocations: 0 / 478.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.193e-05/0.1529, allocations: 63.33 kB / 478.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.153, allocations: 6.312 kB / 478.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001912/0.1532, allocations: 70.77 kB / 478.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.1535, allocations: 0.677 MB / 479.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.214e-06/0.1535, allocations: 3.938 kB / 479.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.442e-05/0.1535, allocations: 7.438 kB / 479.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1535, allocations: 0 / 479.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of Templates: time 0.008343/0.1618, allocations: 4.071 MB / 483.7 MB, free: 1.125 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches