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.0008793/0.0008793, allocations: 94.44 kB / 17.35 MB, free: 6.375 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.000941/0.000941, allocations: 176.3 kB / 18.25 MB, free: 5.523 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.445/1.445, allocations: 223.3 MB / 242.3 MB, free: 220 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.2447/0.2447, allocations: 44.26 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004748/0.0004748, allocations: 8.5 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1656, allocations: 61.93 MB / 472.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.000712/0.1663, allocations: 197.2 kB / 472.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004158/0.1705, allocations: 2.311 MB / 474.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.432e-05/0.1705, allocations: 0 / 474.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.92e-05/0.1706, allocations: 0 / 474.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.354e-06/0.1706, allocations: 0 / 474.7 MB, free: 10.85 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.002747/0.1734, allocations: 1.015 MB / 475.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.649e-05/0.1734, allocations: 4 kB / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.628e-05/0.1735, allocations: 0 / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.219e-05/0.1735, allocations: 3.984 kB / 475.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.664e-05/0.1735, allocations: 0 / 475.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-06/0.1735, allocations: 0 / 475.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00151/0.175, allocations: 0.9638 MB / 476.7 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-06/0.1751, allocations: 4 kB / 476.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.607e-05/0.1751, allocations: 33.69 kB / 476.8 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006286/0.1758, allocations: 407.4 kB / 477.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.395e-06/0.1758, allocations: 4 kB / 477.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1758, allocations: 0 / 477.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.1758, allocations: 0 / 477.2 MB, free: 8.422 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.0005138/0.1763, allocations: 421.2 kB / 477.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.1764, allocations: 15.97 kB / 477.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.601e-05/0.1764, allocations: 0.9375 kB / 477.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.1766, allocations: 164.4 kB / 477.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.1766, allocations: 384 / 477.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.1766, allocations: 384 / 477.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.1767, allocations: 45.94 kB / 477.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.1768, allocations: 0 / 477.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.1768, allocations: 0 / 477.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1768, allocations: 0 / 477.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.455e-05/0.1768, allocations: 7.938 kB / 477.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.177, allocations: 145.7 kB / 478 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.452e-05/0.177, allocations: 18.58 kB / 478 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.934e-05/0.1771, allocations: 8.953 kB / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.1771, allocations: 7.922 kB / 478 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.1771, allocations: 64.19 kB / 478.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.1771, allocations: 0 / 478.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001947/0.1773, allocations: 63.41 kB / 478.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.1774, allocations: 81.23 kB / 478.2 MB, free: 7.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.719e-05/0.1775, allocations: 89.86 kB / 478.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.1775, allocations: 29.7 kB / 478.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.508e-05/0.1775, allocations: 80.14 kB / 478.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.1775, allocations: 3.984 kB / 478.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.1776, allocations: 9.719 kB / 478.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1777, allocations: 310.8 kB / 478.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.1777, allocations: 0 / 478.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-06/0.1777, allocations: 7.938 kB / 478.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.509e-05/0.1778, allocations: 64.33 kB / 478.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1778, allocations: 4 kB / 478.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.595e-05/0.1779, allocations: 59.39 kB / 478.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/0.1779, allocations: 37.64 kB / 478.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1779, allocations: 0 / 478.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.178, allocations: 0 / 478.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.178, allocations: 0 / 478.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.178, allocations: 0 / 478.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.178, allocations: 288 / 478.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.178, allocations: 4.031 kB / 478.9 MB, free: 6.441 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.304e-05/0.1781, allocations: 135.5 kB / 479 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-06/0.1781, allocations: 3.938 kB / 479 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.642e-05/0.1781, allocations: 19 kB / 479 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1781, allocations: 0 / 479 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1782, allocations: 4 kB / 479 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1782, allocations: 0 / 479 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.1783, allocations: 153.5 kB / 479.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1783, allocations: 0 / 479.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-06/0.1783, allocations: 4 kB / 479.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1783, allocations: 7.875 kB / 479.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1783, allocations: 11.98 kB / 479.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.1783, allocations: 0 / 479.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1783, allocations: 0 / 479.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.758e-05/0.1784, allocations: 90.75 kB / 479.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.1785, allocations: 81.09 kB / 479.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.1785, allocations: 3.938 kB / 479.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-06/0.1785, allocations: 4.031 kB / 479.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.1785, allocations: 0 / 479.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.1786, allocations: 4 kB / 479.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.25e-05/0.1786, allocations: 75.28 kB / 479.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.1786, allocations: 0 / 479.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004044/0.179, allocations: 139.9 kB / 479.6 MB, free: 5.609 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000728/0.1798, allocations: 359.1 kB / 480 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.1799, allocations: 59.39 kB / 480 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1799, allocations: 0 / 480 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.847e-05/0.1799, allocations: 59.47 kB / 480.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.1801, allocations: 4 kB / 480.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001852/0.1803, allocations: 70.77 kB / 480.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.1806, allocations: 0.677 MB / 480.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.384e-06/0.1806, allocations: 0 / 480.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.241e-05/0.1806, allocations: 7.438 kB / 480.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1806, allocations: 0 / 480.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of Templates: time 0.008072/0.1887, allocations: 4.283 MB / 485.1 MB, free: 20 kB / 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