Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009091/0.0009091, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004163/0.004163, allocations: 160.7 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.8947/0.8947, allocations: 177.1 MB / 205 MB, free: 5.723 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.2289/0.2289, allocations: 34.26 MB / 295.7 MB, free: 0.6914 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 443.4 MB, free: 1.18 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.952e-05, allocations: 6.219 kB / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0008944/0.000914, allocations: 476.4 kB / 443.9 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1755/0.1765, allocations: 2.295 MB / 446.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.624e-05/0.1765, allocations: 0 / 446.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.439e-05/0.1765, allocations: 2.531 kB / 446.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.444e-06/0.1765, allocations: 0 / 446.2 MB, free: 42.84 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.001422/0.1779, allocations: 1.107 MB / 447.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.552e-05/0.178, allocations: 0 / 447.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.16e-05/0.178, allocations: 6.562 kB / 447.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.843e-05/0.1781, allocations: 3.344 kB / 447.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.18e-05/0.1781, allocations: 2.531 kB / 447.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.683e-06/0.1781, allocations: 0 / 447.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007857/0.1789, allocations: 0.9777 MB / 448.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.1789, allocations: 0 / 448.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.613e-05/0.1789, allocations: 2.75 kB / 448.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.1793, allocations: 0.5329 MB / 448.8 MB, free: 42.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1793, allocations: 0 / 448.8 MB, free: 42.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1793, allocations: 3.594 kB / 448.8 MB, free: 42.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1793, allocations: 0 / 448.8 MB, free: 42.1 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.0002643/0.1796, allocations: 364.6 kB / 449.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1796, allocations: 15.28 kB / 449.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.1796, allocations: 0.9375 kB / 449.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.22e-05/0.1797, allocations: 105.8 kB / 449.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.1797, allocations: 4.312 kB / 449.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.1797, allocations: 3.312 kB / 449.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.586e-05/0.1798, allocations: 62.16 kB / 449.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1798, allocations: 4.188 kB / 449.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.1798, allocations: 384 / 449.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1798, allocations: 3.938 kB / 449.4 MB, free: 41.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.886e-05/0.1798, allocations: 32.08 kB / 449.4 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.097e-05/0.1799, allocations: 93.33 kB / 449.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.634e-05/0.1799, allocations: 47.12 kB / 449.5 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.253e-05/0.1799, allocations: 36.73 kB / 449.6 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.1799, allocations: 3.938 kB / 449.6 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.18, allocations: 56.27 kB / 449.6 MB, free: 41.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.18, allocations: 2.906 kB / 449.6 MB, free: 41.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001538/0.1801, allocations: 119.4 kB / 449.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.1801, allocations: 83.98 kB / 449.8 MB, free: 41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.703e-05/0.1802, allocations: 89.86 kB / 449.9 MB, free: 40.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-06/0.1802, allocations: 25.7 kB / 449.9 MB, free: 40.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.249e-06/0.1802, allocations: 80.14 kB / 450 MB, free: 40.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.1802, allocations: 10.41 kB / 450 MB, free: 40.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.1802, allocations: 9.719 kB / 450 MB, free: 40.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.936e-05/0.1802, allocations: 316.6 kB / 450.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.1802, allocations: 29.7 kB / 450.4 MB, free: 40.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-06/0.1803, allocations: 32.39 kB / 450.4 MB, free: 40.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.509e-05/0.1803, allocations: 63.02 kB / 450.5 MB, free: 40.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1803, allocations: 0 / 450.5 MB, free: 40.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.53e-05/0.1803, allocations: 89.09 kB / 450.5 MB, free: 40.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.1803, allocations: 36.86 kB / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1803, allocations: 0 / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1804, allocations: 0 / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.001e-06/0.1804, allocations: 0 / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1804, allocations: 3.938 kB / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.305e-05/0.1804, allocations: 2.719 kB / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.1804, allocations: 4.031 kB / 450.6 MB, free: 40.17 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.626e-05/0.1804, allocations: 138.7 kB / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-06/0.1804, allocations: 1.875 kB / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-06/0.1804, allocations: 3 kB / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1804, allocations: 10.69 kB / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1804, allocations: 0 / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1804, allocations: 3.938 kB / 450.7 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.91e-05/0.1805, allocations: 99.3 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1805, allocations: 1.266 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.1805, allocations: 0 / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.11e-07/0.1805, allocations: 4 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.1805, allocations: 0 / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.3e-07/0.1805, allocations: 0 / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.3e-07/0.1805, allocations: 2.875 kB / 450.9 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.533e-05/0.1805, allocations: 120.5 kB / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-06/0.1805, allocations: 0 / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-06/0.1805, allocations: 2.812 kB / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.528e-06/0.1805, allocations: 0 / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.136e-05/0.1805, allocations: 3.188 kB / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-06/0.1805, allocations: 0 / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.039e-05/0.1806, allocations: 86.03 kB / 451.1 MB, free: 39.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1806, allocations: 4.031 kB / 451.1 MB, free: 39.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.1808, allocations: 157.5 kB / 451.2 MB, free: 39.62 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.0004727/0.1813, allocations: 422 kB / 451.6 MB, free: 39.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.121e-05/0.1814, allocations: 115.9 kB / 451.7 MB, free: 39.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-06/0.1814, allocations: 0 / 451.7 MB, free: 39.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.323e-05/0.1814, allocations: 79.89 kB / 451.8 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.225e-05/0.1815, allocations: 8.266 kB / 451.8 MB, free: 39.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001393/0.1816, allocations: 132.4 kB / 452 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.359e-05/0.1816, allocations: 53.98 kB / 452 MB, free: 38.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.119e-05/0.1816, allocations: 11.41 kB / 452 MB, free: 38.98 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.1816, allocations: 128 / 452 MB, free: 38.98 MB / 410.7 MB Notification: Performance of Templates: time 0.00343/0.1851, allocations: 3.969 MB / 456 MB, free: 38.56 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.664096554741263]