Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009311/0.0009311, allocations: 97.48 kB / 17 MB, free: 6.418 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.001512/0.001512, allocations: 189.4 kB / 17.89 MB, free: 5.945 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.536/1.536, allocations: 223.3 MB / 241.9 MB, free: 308 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2159/0.2159, allocations: 44.24 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003786/0.0003788, allocations: 8.75 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1412, allocations: 61.91 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006065/0.1419, allocations: 189.2 kB / 471.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.1455, allocations: 2.14 MB / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.619e-05/0.1455, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.09e-05/0.1455, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.112e-05/0.1456, 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.002572/0.1481, allocations: 0.9031 MB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.615e-05/0.1482, allocations: 0 / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.854e-05/0.1483, allocations: 0 / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.17e-05/0.1483, allocations: 4 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.86e-05/0.1483, allocations: 4 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.1483, allocations: 0 / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.1499, allocations: 0.8975 MB / 475.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-06/0.1499, allocations: 0 / 475.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.1499, allocations: 25.7 kB / 475.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.1503, allocations: 267.5 kB / 476 MB, free: 9.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1503, allocations: 0 / 476 MB, free: 9.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1503, allocations: 0 / 476 MB, free: 9.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1503, allocations: 0 / 476 MB, free: 9.258 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.0004461/0.1508, allocations: 427.3 kB / 476.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.1509, allocations: 12.02 kB / 476.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.1509, allocations: 0 / 476.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.151, allocations: 159.1 kB / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.1511, allocations: 0 / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.1511, allocations: 8 kB / 476.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.1512, allocations: 37.59 kB / 476.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1512, allocations: 0 / 476.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1512, allocations: 0 / 476.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1512, allocations: 0 / 476.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.466e-05/0.1513, allocations: 4 kB / 476.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001752/0.1514, allocations: 145.7 kB / 476.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.766e-05/0.1515, allocations: 18.67 kB / 476.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.1515, allocations: 8.859 kB / 476.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.1515, allocations: 3.938 kB / 476.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/0.1516, allocations: 68.16 kB / 476.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1516, allocations: 0 / 476.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.1518, allocations: 63.39 kB / 476.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.1519, allocations: 77.11 kB / 477 MB, free: 8.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.966e-05/0.1519, allocations: 89.86 kB / 477.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.1519, allocations: 33.83 kB / 477.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.787e-05/0.152, allocations: 80.14 kB / 477.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.152, allocations: 0 / 477.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.83e-06/0.152, allocations: 4 kB / 477.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.1522, allocations: 310.8 kB / 477.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-06/0.1522, allocations: 0 / 477.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.766e-06/0.1522, allocations: 7.938 kB / 477.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.12e-05/0.1523, allocations: 29.69 kB / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1523, allocations: 0 / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.923e-05/0.1524, allocations: 63.47 kB / 477.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.1524, allocations: 29.7 kB / 477.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.1524, allocations: 0 / 477.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1524, allocations: 3.953 kB / 477.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.515e-06/0.1525, allocations: 4 kB / 477.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.1525, allocations: 0 / 477.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.1525, allocations: 288 / 477.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.1525, allocations: 3.984 kB / 477.7 MB, free: 7.344 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.422e-05/0.1526, allocations: 144.1 kB / 477.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.884e-05/0.1527, allocations: 7.922 kB / 477.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.208e-05/0.1527, allocations: 7.078 kB / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1527, allocations: 3.953 kB / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1527, allocations: 0 / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.1527, allocations: 0 / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.1528, allocations: 153.6 kB / 478 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1528, allocations: 0 / 478 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.515e-06/0.1528, allocations: 3.938 kB / 478 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1528, allocations: 0 / 478 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.1528, allocations: 0 / 478 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1528, allocations: 4 kB / 478 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1529, allocations: 3.953 kB / 478 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001033/0.153, allocations: 98.73 kB / 478.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.153, allocations: 81.05 kB / 478.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.153, allocations: 4 kB / 478.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-06/0.153, allocations: 0 / 478.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.472e-05/0.1531, allocations: 0 / 478.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.1531, allocations: 7.984 kB / 478.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.023e-05/0.1531, allocations: 75.28 kB / 478.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1531, allocations: 0 / 478.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004202/0.1535, allocations: 144 kB / 478.4 MB, free: 6.512 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.0006838/0.1542, allocations: 367.9 kB / 478.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.314e-05/0.1543, allocations: 59.34 kB / 478.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1543, allocations: 0 / 478.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.343e-05/0.1544, allocations: 55.41 kB / 478.8 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.000122/0.1545, allocations: 0 / 478.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001795/0.1547, allocations: 82.88 kB / 478.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.1549, allocations: 0.6692 MB / 479.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.1549, allocations: 0 / 479.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.927e-06/0.155, allocations: 11.38 kB / 479.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.155, allocations: 4 kB / 479.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of Templates: time 0.007948/0.1629, allocations: 4.072 MB / 483.7 MB, free: 1.121 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches