Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.0008389/0.0008389, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003388/0.003388, allocations: 163.3 kB / 24.7 MB, free: 9.43 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.8786/0.8786, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 34.26 MB / 295.7 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 443.4 MB, free: 1.195 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.148e-05/2.306e-05, allocations: 7.406 kB / 443.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009077/0.0009307, allocations: 472.6 kB / 443.9 MB, free: 0.7305 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1701/0.1711, allocations: 2.294 MB / 446.2 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.1711, allocations: 0 / 446.2 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.503e-05/0.1711, allocations: 3 kB / 446.2 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.753e-06/0.1711, allocations: 0 / 446.2 MB, free: 42.81 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001679/0.1728, allocations: 1.109 MB / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.178e-05/0.1728, allocations: 0 / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.1729, allocations: 2.719 kB / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.756e-05/0.1729, allocations: 0 / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.092e-05/0.1729, allocations: 3.938 kB / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.1729, allocations: 0.5938 kB / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008496/0.1738, allocations: 0.9781 MB / 448.3 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.1738, allocations: 1.281 kB / 448.3 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.79e-05/0.1738, allocations: 2.719 kB / 448.3 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004143/0.1742, allocations: 0.5337 MB / 448.8 MB, free: 42.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1742, allocations: 7.375 kB / 448.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1742, allocations: 0 / 448.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1742, allocations: 0 / 448.8 MB, free: 42.11 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.0002791/0.1745, allocations: 365.3 kB / 449.2 MB, free: 41.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.1746, allocations: 11.81 kB / 449.2 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.1746, allocations: 3.75 kB / 449.2 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.362e-05/0.1746, allocations: 101.8 kB / 449.3 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.1746, allocations: 7.25 kB / 449.3 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.1747, allocations: 3.188 kB / 449.3 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.423e-05/0.1747, allocations: 62 kB / 449.3 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1747, allocations: 4.188 kB / 449.3 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.1747, allocations: 384 / 449.3 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1747, allocations: 3.938 kB / 449.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.776e-05/0.1748, allocations: 32.55 kB / 449.4 MB, free: 41.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.823e-05/0.1748, allocations: 96.7 kB / 449.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.312e-05/0.1749, allocations: 47.16 kB / 449.5 MB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.1749, allocations: 33.41 kB / 449.6 MB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.332e-06/0.1749, allocations: 0 / 449.6 MB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.1749, allocations: 59.14 kB / 449.6 MB, free: 41.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.11e-07/0.1749, allocations: 0 / 449.6 MB, free: 41.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.1751, allocations: 126.4 kB / 449.7 MB, free: 41.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.1751, allocations: 81.05 kB / 449.8 MB, free: 41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.772e-05/0.1751, allocations: 89.86 kB / 449.9 MB, free: 40.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-06/0.1751, allocations: 25.7 kB / 449.9 MB, free: 40.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-06/0.1751, allocations: 80.14 kB / 450 MB, free: 40.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.1751, allocations: 6.016 kB / 450 MB, free: 40.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.1752, allocations: 15.72 kB / 450 MB, free: 40.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.033e-05/0.1752, allocations: 314.8 kB / 450.3 MB, free: 40.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.275e-05/0.1752, allocations: 25.7 kB / 450.4 MB, free: 40.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.466e-06/0.1752, allocations: 28.61 kB / 450.4 MB, free: 40.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.711e-05/0.1752, allocations: 66.55 kB / 450.5 MB, free: 40.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1752, allocations: 0 / 450.5 MB, free: 40.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.747e-05/0.1753, allocations: 93.67 kB / 450.5 MB, free: 40.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.1753, allocations: 33.02 kB / 450.6 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1753, allocations: 0 / 450.6 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1753, allocations: 6.469 kB / 450.6 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1753, allocations: 0 / 450.6 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1753, allocations: 3.938 kB / 450.6 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.194e-05/0.1753, allocations: 2.812 kB / 450.6 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1753, allocations: 0 / 450.6 MB, free: 40.19 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.647e-05/0.1754, allocations: 139.5 kB / 450.7 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.496e-06/0.1754, allocations: 1.875 kB / 450.7 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.726e-06/0.1754, allocations: 3 kB / 450.7 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1754, allocations: 3.938 kB / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1754, allocations: 2.75 kB / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1754, allocations: 7.172 kB / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.651e-05/0.1754, allocations: 93.33 kB / 450.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1754, allocations: 4.531 kB / 450.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-07/0.1754, allocations: 0 / 450.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-07/0.1754, allocations: 0 / 450.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.1754, allocations: 4 kB / 450.8 MB, free: 39.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.1754, allocations: 0 / 450.8 MB, free: 39.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1754, allocations: 2.812 kB / 450.8 MB, free: 39.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.374e-05/0.1755, allocations: 122.9 kB / 451 MB, free: 39.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.447e-06/0.1755, allocations: 3.469 kB / 451 MB, free: 39.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.547e-06/0.1755, allocations: 2.875 kB / 451 MB, free: 39.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.459e-06/0.1755, allocations: 0 / 451 MB, free: 39.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.099e-05/0.1755, allocations: 4 kB / 451 MB, free: 39.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-06/0.1755, allocations: 0 / 451 MB, free: 39.76 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.085e-06/0.1755, allocations: 82.12 kB / 451.1 MB, free: 39.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1755, allocations: 32 / 451.1 MB, free: 39.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002483/0.1758, allocations: 160.8 kB / 451.2 MB, free: 39.63 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.0004517/0.1762, allocations: 416.8 kB / 451.6 MB, free: 39.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.147e-05/0.1763, allocations: 115.7 kB / 451.7 MB, free: 39.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1763, allocations: 2.906 kB / 451.7 MB, free: 39.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.229e-05/0.1763, allocations: 83.89 kB / 451.8 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.63e-05/0.1764, allocations: 6.594 kB / 451.8 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001336/0.1765, allocations: 135 kB / 452 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.21e-05/0.1765, allocations: 54.08 kB / 452 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.071e-05/0.1765, allocations: 11.5 kB / 452 MB, free: 39 MB / 410.7 MB Notification: Performance of SimCode: time 3.5e-07/0.1765, allocations: 0 / 452 MB, free: 39 MB / 410.7 MB Notification: Performance of Templates: time 0.003449/0.18, allocations: 3.972 MB / 456 MB, free: 38.57 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.648641845211387]