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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008377/0.0008377, allocations: 87.62 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003328/0.003328, allocations: 162.5 kB / 24.7 MB, free: 8.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8689/0.8689, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2743/0.2743, allocations: 32.79 MB / 294.2 MB, free: 1.23 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 440.8 MB, free: 3.805 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.472e-05, allocations: 3.406 kB / 440.8 MB, free: 3.801 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0009232/0.000948, allocations: 475.4 kB / 441.3 MB, free: 3.34 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.003429, allocations: 2.299 MB / 443.6 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.136e-05/0.003451, allocations: 0 / 443.6 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.289e-05/0.003464, allocations: 0 / 443.6 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.00347, allocations: 0 / 443.6 MB, free: 1.02 MB / 410.7 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.1738/0.1773, allocations: 1.094 MB / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.999e-05/0.1773, allocations: 3.781 kB / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.1774, allocations: 5.156 kB / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.531e-05/0.1774, allocations: 4.312 kB / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.241e-05/0.1774, allocations: 0.7031 kB / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.1774, allocations: 0 / 444.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001111/0.1785, allocations: 0.9762 MB / 445.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.1785, allocations: 0 / 445.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.709e-05/0.1785, allocations: 1.5 kB / 445.7 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004325/0.179, allocations: 0.5318 MB / 446.2 MB, free: 43.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.179, allocations: 2.781 kB / 446.2 MB, free: 43.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.179, allocations: 2.062 kB / 446.2 MB, free: 43.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.179, allocations: 0 / 446.2 MB, free: 43.78 MB / 410.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.000243/0.1792, allocations: 373.7 kB / 446.6 MB, free: 43.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.1793, allocations: 12.44 kB / 446.6 MB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.1793, allocations: 0.9375 kB / 446.6 MB, free: 43.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.437e-05/0.1793, allocations: 110.9 kB / 446.7 MB, free: 43.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.1793, allocations: 3.281 kB / 446.7 MB, free: 43.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.1793, allocations: 384 / 446.7 MB, free: 43.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.513e-05/0.1794, allocations: 60.61 kB / 446.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.1794, allocations: 192 / 446.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.1794, allocations: 3.891 kB / 446.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1794, allocations: 6.094 kB / 446.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.687e-05/0.1794, allocations: 28.58 kB / 446.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.167e-05/0.1795, allocations: 99.36 kB / 446.9 MB, free: 43.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.3e-05/0.1795, allocations: 46 kB / 446.9 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.212e-05/0.1796, allocations: 33.84 kB / 447 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-06/0.1796, allocations: 0 / 447 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.1796, allocations: 64.52 kB / 447 MB, free: 42.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 4.01e-07/0.1796, allocations: 0 / 447 MB, free: 42.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001259/0.1797, allocations: 121 kB / 447.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.1797, allocations: 77.11 kB / 447.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.475e-05/0.1797, allocations: 97.67 kB / 447.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-06/0.1797, allocations: 25.7 kB / 447.3 MB, free: 42.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.551e-06/0.1797, allocations: 86.84 kB / 447.4 MB, free: 42.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.1798, allocations: 3.266 kB / 447.4 MB, free: 42.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.708e-05/0.1798, allocations: 12.59 kB / 447.4 MB, free: 42.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.922e-05/0.1798, allocations: 312.7 kB / 447.7 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.025e-05/0.1798, allocations: 28.94 kB / 447.8 MB, free: 42.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.024e-06/0.1798, allocations: 28.7 kB / 447.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.449e-05/0.1799, allocations: 65.95 kB / 447.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1799, allocations: 0 / 447.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.167e-05/0.1799, allocations: 96.41 kB / 447.9 MB, free: 41.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1799, allocations: 29.17 kB / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1799, allocations: 4.969 kB / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1799, allocations: 0 / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1799, allocations: 0 / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.1799, allocations: 0 / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.638e-06/0.1799, allocations: 3.938 kB / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.1799, allocations: 2.906 kB / 448 MB, free: 41.91 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.18, allocations: 142.7 kB / 448.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-06/0.18, allocations: 0 / 448.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.243e-06/0.18, allocations: 3 kB / 448.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.18, allocations: 2.344 kB / 448.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.18, allocations: 0 / 448.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.18, allocations: 7.312 kB / 448.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.532e-05/0.18, allocations: 102 kB / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.9e-07/0.18, allocations: 0 / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-07/0.18, allocations: 0 / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-07/0.18, allocations: 0 / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-06/0.18, allocations: 3.156 kB / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.01e-07/0.18, allocations: 4 kB / 448.2 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.18, allocations: 0 / 448.2 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.234e-05/0.1801, allocations: 117.7 kB / 448.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-06/0.1801, allocations: 2.938 kB / 448.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-06/0.1801, allocations: 0 / 448.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.278e-06/0.1801, allocations: 0 / 448.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.082e-05/0.1801, allocations: 8.469 kB / 448.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-06/0.1801, allocations: 2.969 kB / 448.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.685e-06/0.1801, allocations: 79.3 kB / 448.5 MB, free: 41.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1801, allocations: 0 / 448.5 MB, free: 41.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002453/0.1803, allocations: 165.3 kB / 448.6 MB, free: 41.39 MB / 410.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 (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.0004385/0.1808, allocations: 423.8 kB / 449 MB, free: 41.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.452e-05/0.1808, allocations: 115 kB / 449.1 MB, free: 41.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.1808, allocations: 0 / 449.1 MB, free: 41.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.126e-05/0.1809, allocations: 80.11 kB / 449.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.381e-05/0.1809, allocations: 3.469 kB / 449.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001264/0.1811, allocations: 130 kB / 449.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.038e-05/0.1811, allocations: 57.42 kB / 449.4 MB, free: 40.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.034e-05/0.1811, allocations: 15.19 kB / 449.4 MB, free: 40.82 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1811, allocations: 0 / 449.4 MB, free: 40.82 MB / 410.7 MB Notification: Performance of Templates: time 0.003686/0.1848, allocations: 3.986 MB / 453.4 MB, free: 40.41 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.871167976409197]