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.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.001336/0.001336, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001069/0.001069, allocations: 172.7 kB / 24.91 MB, free: 9.148 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 1.02/1.02, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.2598/0.2598, allocations: 32.81 MB / 294.6 MB, free: 1.199 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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 323.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.727e-05, allocations: 4 kB / 323.2 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001078/0.001095, allocations: 0.5103 MB / 323.7 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.00371, allocations: 2.373 MB / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.426e-05/0.003734, allocations: 0 / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.003748, allocations: 0 / 326.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.171e-06/0.003755, allocations: 0 / 326.1 MB, free: 6.785 MB / 298.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.001774/0.005529, allocations: 1.078 MB / 327.2 MB, free: 5.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.965e-05/0.005569, allocations: 4 kB / 327.2 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.999e-05/0.005599, allocations: 4 kB / 327.2 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.525e-05/0.005624, allocations: 7.984 kB / 327.2 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.959e-05/0.005643, allocations: 4 kB / 327.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-06/0.00565, allocations: 3.938 kB / 327.2 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.006802, allocations: 1.061 MB / 328.3 MB, free: 4.617 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.006811, allocations: 3.984 kB / 328.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.599e-05/0.006827, allocations: 0.625 kB / 328.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.007319, allocations: 0.5377 MB / 328.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.007321, allocations: 0 / 328.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.007321, allocations: 0 / 328.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.066e-06/0.007324, allocations: 7.938 kB / 328.8 MB, free: 4.066 MB / 298.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.0002385/0.007563, allocations: 345.5 kB / 329.2 MB, free: 3.699 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.675e-05/0.00759, allocations: 8.031 kB / 329.2 MB, free: 3.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.065e-05/0.00761, allocations: 0.9375 kB / 329.2 MB, free: 3.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.43e-05/0.007654, allocations: 105.8 kB / 329.3 MB, free: 3.562 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.007663, allocations: 4.375 kB / 329.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-06/0.007668, allocations: 384 / 329.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.837e-05/0.007736, allocations: 63.94 kB / 329.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.007742, allocations: 192 / 329.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-06/0.007748, allocations: 384 / 329.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.007752, allocations: 7.938 kB / 329.4 MB, free: 3.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.176e-05/0.007764, allocations: 25.7 kB / 329.4 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.993e-05/0.007824, allocations: 57.05 kB / 329.4 MB, free: 3.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.681e-05/0.007861, allocations: 48.25 kB / 329.5 MB, free: 3.312 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.553e-05/0.007876, allocations: 34.55 kB / 329.5 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-06/0.007879, allocations: 0 / 329.5 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.007907, allocations: 64.33 kB / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.007907, allocations: 0 / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.455e-05/0.007992, allocations: 110.8 kB / 329.7 MB, free: 3.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.008019, allocations: 85.16 kB / 329.8 MB, free: 2.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.635e-05/0.008045, allocations: 101.8 kB / 329.9 MB, free: 2.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-06/0.008052, allocations: 25.7 kB / 329.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.429e-05/0.008067, allocations: 80.14 kB / 330 MB, free: 2.734 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.218e-05/0.008079, allocations: 1.203 kB / 330 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/0.008098, allocations: 13.72 kB / 330 MB, free: 2.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.868e-05/0.008156, allocations: 314.8 kB / 330.3 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.008168, allocations: 25.7 kB / 330.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.085e-05/0.008179, allocations: 29.7 kB / 330.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.651e-05/0.008216, allocations: 64.25 kB / 330.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.008218, allocations: 4.062 kB / 330.4 MB, free: 2.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.276e-05/0.00826, allocations: 89.05 kB / 330.5 MB, free: 2.145 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.008281, allocations: 29.7 kB / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.008285, allocations: 0 / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.819e-06/0.008295, allocations: 4 kB / 330.5 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.008296, allocations: 0 / 330.5 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.0083, allocations: 3.984 kB / 330.5 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.427e-06/0.008309, allocations: 0 / 330.5 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.008315, allocations: 3.938 kB / 330.5 MB, free: 2.098 MB / 298.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 5.313e-05/0.008368, allocations: 135.5 kB / 330.7 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.817e-06/0.008372, allocations: 4.031 kB / 330.7 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-06/0.008379, allocations: 3 kB / 330.7 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.62e-07/0.008379, allocations: 0 / 330.7 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.008381, allocations: 4 kB / 330.7 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.008383, allocations: 0 / 330.7 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.974e-05/0.008423, allocations: 65.83 kB / 330.7 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.008423, allocations: 0 / 330.7 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.008424, allocations: 0 / 330.7 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-07/0.008424, allocations: 0 / 330.7 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-06/0.008428, allocations: 4 kB / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.61e-07/0.008428, allocations: 0 / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.00843, allocations: 7.984 kB / 330.8 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.309e-05/0.008483, allocations: 120.4 kB / 330.9 MB, free: 1.699 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-06/0.008488, allocations: 4.969 kB / 330.9 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.608e-06/0.008497, allocations: 4 kB / 330.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.078e-06/0.008502, allocations: 0 / 330.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-06/0.008509, allocations: 3.938 kB / 330.9 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-06/0.008511, allocations: 4 kB / 330.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.63e-06/0.008516, allocations: 8.859 kB / 330.9 MB, free: 1.672 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008516, allocations: 0 / 330.9 MB, free: 1.672 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002624/0.008779, allocations: 155.5 kB / 331.1 MB, free: 1.52 MB / 298.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.0004811/0.00926, allocations: 423.5 kB / 331.5 MB, free: 1.113 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.924e-05/0.009339, allocations: 127.7 kB / 331.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.009341, allocations: 0 / 331.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.698e-05/0.009368, allocations: 89.91 kB / 331.7 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.206e-05/0.00941, allocations: 3.938 kB / 331.7 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001188/0.009529, allocations: 109.3 kB / 331.8 MB, free: 0.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.464e-05/0.009554, allocations: 55.36 kB / 331.8 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.138e-06/0.009558, allocations: 0 / 331.8 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.907e-05/0.009587, allocations: 51.38 kB / 331.9 MB, free: 0.582 MB / 298.7 MB Notification: Performance of SimCode: time 4.2e-07/0.009587, allocations: 0 / 331.9 MB, free: 0.582 MB / 298.7 MB Notification: Performance of Templates: time 0.006376/0.01596, allocations: 6.093 MB / 338 MB, free: 10.49 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.93128213705495]