Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009018/0.0009019, allocations: 177.2 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008055/0.0008056, allocations: 87.86 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4243/0.4243, allocations: 43.55 MB / 362.7 MB, free: 51.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000477/0.000477, allocations: 12 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1653, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0007466/0.1661, allocations: 200.5 kB / 490.4 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.1695, allocations: 2.171 MB / 492.6 MB, free: 8.613 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.067e-05/0.1696, allocations: 7.938 kB / 492.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.572e-05/0.1696, allocations: 0 / 492.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.068e-05/0.1696, allocations: 0 / 492.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002266/0.1719, allocations: 0.9001 MB / 493.5 MB, free: 7.703 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.832e-05/0.172, allocations: 0 / 493.5 MB, free: 7.703 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.648e-05/0.172, allocations: 0 / 493.5 MB, free: 7.703 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.151e-05/0.172, allocations: 0 / 493.5 MB, free: 7.703 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.222e-05/0.1721, allocations: 3.938 kB / 493.5 MB, free: 7.699 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.1721, allocations: 4 kB / 493.5 MB, free: 7.695 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.1734, allocations: 0.8975 MB / 494.4 MB, free: 6.797 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.1735, allocations: 0 / 494.4 MB, free: 6.797 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.338e-05/0.1735, allocations: 25.7 kB / 494.4 MB, free: 6.766 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003965/0.1739, allocations: 263.5 kB / 494.7 MB, free: 6.508 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.1739, allocations: 0 / 494.7 MB, free: 6.508 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1739, allocations: 0 / 494.7 MB, free: 6.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1739, allocations: 0 / 494.7 MB, free: 6.508 MB / 378.7 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.0004684/0.1744, allocations: 421 kB / 495.1 MB, free: 6.043 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.1745, allocations: 8.031 kB / 495.1 MB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.1745, allocations: 7.938 kB / 495.1 MB, free: 6.027 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.1747, allocations: 159.1 kB / 495.3 MB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.1747, allocations: 0 / 495.3 MB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.467e-06/0.1747, allocations: 7.938 kB / 495.3 MB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.1748, allocations: 33.64 kB / 495.3 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1748, allocations: 0 / 495.3 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.1748, allocations: 0 / 495.3 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.1748, allocations: 0 / 495.3 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.245e-05/0.1749, allocations: 7.953 kB / 495.3 MB, free: 5.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.175, allocations: 149.7 kB / 495.5 MB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.635e-05/0.1751, allocations: 14.58 kB / 495.5 MB, free: 5.559 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.1751, allocations: 16.95 kB / 495.5 MB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.1751, allocations: 0 / 495.5 MB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.233e-05/0.1752, allocations: 56.27 kB / 495.6 MB, free: 5.469 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.1752, allocations: 3.938 kB / 495.6 MB, free: 5.465 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001936/0.1754, allocations: 71.3 kB / 495.6 MB, free: 5.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/0.1755, allocations: 77.11 kB / 495.7 MB, free: 5.289 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.109e-05/0.1755, allocations: 89.86 kB / 495.8 MB, free: 5.191 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1755, allocations: 29.83 kB / 495.8 MB, free: 5.156 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.375e-05/0.1756, allocations: 84.14 kB / 495.9 MB, free: 5.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.1756, allocations: 0 / 495.9 MB, free: 5.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.1756, allocations: 0 / 495.9 MB, free: 5.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1757, allocations: 314.8 kB / 496.2 MB, free: 4.754 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.397e-06/0.1757, allocations: 0 / 496.2 MB, free: 4.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.655e-06/0.1758, allocations: 4 kB / 496.2 MB, free: 4.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.222e-05/0.1758, allocations: 29.69 kB / 496.2 MB, free: 4.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1758, allocations: 0 / 496.2 MB, free: 4.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.927e-05/0.1759, allocations: 71.41 kB / 496.3 MB, free: 4.633 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.1759, allocations: 29.7 kB / 496.3 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.1759, allocations: 0 / 496.3 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.176, allocations: 0 / 496.3 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.176, allocations: 4 kB / 496.3 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.176, allocations: 4 kB / 496.3 MB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.176, allocations: 7.922 kB / 496.4 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.176, allocations: 3.984 kB / 496.4 MB, free: 4.578 MB / 378.7 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.263e-05/0.1761, allocations: 143.8 kB / 496.5 MB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.1761, allocations: 4.031 kB / 496.5 MB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.165e-05/0.1761, allocations: 3.125 kB / 496.5 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1762, allocations: 0 / 496.5 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1762, allocations: 0 / 496.5 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1762, allocations: 0 / 496.5 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.1763, allocations: 161.6 kB / 496.7 MB, free: 4.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1763, allocations: 0 / 496.7 MB, free: 4.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1763, allocations: 0 / 496.7 MB, free: 4.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1763, allocations: 0 / 496.7 MB, free: 4.207 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.1763, allocations: 3.938 kB / 496.7 MB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1763, allocations: 4 kB / 496.7 MB, free: 4.199 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1763, allocations: 0 / 496.7 MB, free: 4.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.1764, allocations: 98.72 kB / 496.8 MB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.1765, allocations: 81.05 kB / 496.8 MB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1765, allocations: 0 / 496.8 MB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-06/0.1765, allocations: 4 kB / 496.9 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.863e-05/0.1766, allocations: 0 / 496.9 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1766, allocations: 0 / 496.9 MB, free: 3.977 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.187e-05/0.1766, allocations: 79.31 kB / 496.9 MB, free: 3.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1766, allocations: 0 / 496.9 MB, free: 3.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004042/0.177, allocations: 140 kB / 497.1 MB, free: 3.762 MB / 378.7 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.0007376/0.1778, allocations: 370.1 kB / 497.4 MB, free: 3.398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001152/0.1779, allocations: 63.34 kB / 497.5 MB, free: 3.324 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1779, allocations: 0 / 497.5 MB, free: 3.324 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.634e-05/0.178, allocations: 55.41 kB / 497.5 MB, free: 3.258 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1781, allocations: 3.953 kB / 497.5 MB, free: 3.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002121/0.1783, allocations: 104.5 kB / 497.6 MB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.1786, allocations: 0.6771 MB / 498.3 MB, free: 2.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.1787, allocations: 7.438 kB / 498.3 MB, free: 2.414 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1787, allocations: 0 / 498.3 MB, free: 2.414 MB / 378.7 MB Notification: Performance of Templates: time 0.2579/0.4365, allocations: 3.615 MB / 0.4902 GB, free: 40.56 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches