Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001546, allocations: 179.5 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.499/1.499, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0009532/0.0009532, allocations: 90.3 kB / 270.9 MB, free: 8.359 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.4874/0.4874, allocations: 43.56 MB / 362.7 MB, free: 52.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005242/0.0005245, allocations: 16 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1659, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009413/0.1669, allocations: 196.5 kB / 490.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004179/0.1711, allocations: 2.175 MB / 492.6 MB, free: 8.844 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.763e-05/0.1712, allocations: 4 kB / 492.6 MB, free: 8.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.1712, allocations: 0 / 492.6 MB, free: 8.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.625e-06/0.1712, allocations: 0 / 492.6 MB, free: 8.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002692/0.1739, allocations: 0.8962 MB / 493.5 MB, free: 7.941 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.637e-05/0.174, allocations: 8 kB / 493.5 MB, free: 7.934 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.708e-05/0.174, allocations: 0 / 493.5 MB, free: 7.934 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.117e-05/0.1741, allocations: 3.938 kB / 493.5 MB, free: 7.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.52e-05/0.1741, allocations: 7.922 kB / 493.5 MB, free: 7.922 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.597e-06/0.1741, allocations: 4 kB / 493.5 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001912/0.176, allocations: 0.8819 MB / 494.4 MB, free: 7.035 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.1761, allocations: 0 / 494.4 MB, free: 7.035 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.1761, allocations: 25.7 kB / 494.4 MB, free: 7.004 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006623/0.1768, allocations: 263.5 kB / 494.7 MB, free: 6.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1768, allocations: 4 kB / 494.7 MB, free: 6.742 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1768, allocations: 0 / 494.7 MB, free: 6.742 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1768, allocations: 0 / 494.7 MB, free: 6.742 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.0005734/0.1774, allocations: 425 kB / 495.1 MB, free: 6.273 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.1775, allocations: 8.031 kB / 495.1 MB, free: 6.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.1775, allocations: 3.953 kB / 495.1 MB, free: 6.262 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.1776, allocations: 159.1 kB / 495.3 MB, free: 6.066 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.1776, allocations: 0 / 495.3 MB, free: 6.066 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.1777, allocations: 7.984 kB / 495.3 MB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.1778, allocations: 33.7 kB / 495.3 MB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1778, allocations: 0 / 495.3 MB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.1778, allocations: 0 / 495.3 MB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1778, allocations: 0 / 495.3 MB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.368e-05/0.1778, allocations: 7.953 kB / 495.3 MB, free: 6.012 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.178, allocations: 141.7 kB / 495.5 MB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.673e-05/0.1781, allocations: 22.5 kB / 495.5 MB, free: 5.793 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.82e-05/0.1781, allocations: 20.89 kB / 495.5 MB, free: 5.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.1781, allocations: 4 kB / 495.5 MB, free: 5.766 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.1782, allocations: 56.27 kB / 495.6 MB, free: 5.695 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.1782, allocations: 0 / 495.6 MB, free: 5.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002245/0.1784, allocations: 63.31 kB / 495.6 MB, free: 5.621 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.1785, allocations: 85.03 kB / 495.7 MB, free: 5.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.321e-05/0.1785, allocations: 89.86 kB / 495.8 MB, free: 5.422 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1786, allocations: 29.7 kB / 495.8 MB, free: 5.387 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.832e-05/0.1786, allocations: 84.27 kB / 495.9 MB, free: 5.301 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.1786, allocations: 4 kB / 495.9 MB, free: 5.297 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.1787, allocations: 0 / 495.9 MB, free: 5.297 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1788, allocations: 314.8 kB / 496.2 MB, free: 4.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.017e-06/0.1788, allocations: 0 / 496.2 MB, free: 4.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.137e-06/0.1788, allocations: 4 kB / 496.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.959e-05/0.1789, allocations: 25.7 kB / 496.2 MB, free: 4.945 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1789, allocations: 0 / 496.2 MB, free: 4.945 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.889e-05/0.1789, allocations: 67.45 kB / 496.3 MB, free: 4.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.179, allocations: 29.7 kB / 496.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.179, allocations: 0 / 496.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.179, allocations: 0 / 496.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.958e-06/0.179, allocations: 0 / 496.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.1791, allocations: 11.88 kB / 496.3 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.936e-05/0.1791, allocations: 0 / 496.3 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.1791, allocations: 0 / 496.3 MB, free: 4.82 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 0.0001017/0.1792, allocations: 151.8 kB / 496.5 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.1792, allocations: 12 kB / 496.5 MB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.277e-05/0.1792, allocations: 3.125 kB / 496.5 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1792, allocations: 0 / 496.5 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1793, allocations: 0 / 496.5 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1793, allocations: 0 / 496.5 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.1794, allocations: 149.6 kB / 496.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1794, allocations: 0 / 496.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.1794, allocations: 0 / 496.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1794, allocations: 3.984 kB / 496.7 MB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1794, allocations: 4 kB / 496.7 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1794, allocations: 0 / 496.7 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.1794, allocations: 4 kB / 496.7 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.1795, allocations: 90.8 kB / 496.8 MB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.1796, allocations: 85.03 kB / 496.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.1796, allocations: 0 / 496.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.1796, allocations: 4 kB / 496.8 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.635e-05/0.1797, allocations: 3.938 kB / 496.8 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.1797, allocations: 3.938 kB / 496.9 MB, free: 4.207 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.49e-05/0.1797, allocations: 83.31 kB / 496.9 MB, free: 4.125 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1797, allocations: 0 / 496.9 MB, free: 4.125 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005063/0.1802, allocations: 136 kB / 497.1 MB, free: 3.992 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.0007998/0.181, allocations: 369.9 kB / 497.4 MB, free: 3.629 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.1812, allocations: 59.39 kB / 497.5 MB, free: 3.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1812, allocations: 0 / 497.5 MB, free: 3.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.573e-05/0.1812, allocations: 55.41 kB / 497.5 MB, free: 3.492 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001239/0.1813, allocations: 7.953 kB / 497.5 MB, free: 3.484 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.1816, allocations: 104.4 kB / 497.6 MB, free: 3.352 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.1819, allocations: 0.6772 MB / 498.3 MB, free: 2.648 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.1819, allocations: 7.438 kB / 498.3 MB, free: 2.641 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.1819, allocations: 3.938 kB / 498.3 MB, free: 2.637 MB / 378.7 MB Notification: Performance of Templates: time 0.2628/0.4446, allocations: 3.604 MB / 0.4902 GB, free: 40.58 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches