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.001097/0.001097, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001218/0.001218, allocations: 171.5 kB / 24.91 MB, free: 9.219 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.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.2769/0.2769, allocations: 32.81 MB / 294.6 MB, free: 1.246 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.894e-06/1.894e-06, allocations: 0 / 323.2 MB, free: 9.703 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.537e-05, allocations: 3.016 kB / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.004545/0.004571, allocations: 0.5203 MB / 323.7 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006128/0.0107, allocations: 2.365 MB / 326.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.73e-05/0.01073, allocations: 0 / 326.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.01074, allocations: 4 kB / 326.1 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.583e-06/0.01075, allocations: 3.938 kB / 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.002365/0.01311, allocations: 1.085 MB / 327.2 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.138e-05/0.01316, allocations: 7.922 kB / 327.2 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002046/0.01521, allocations: 8 kB / 327.2 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.297e-05/0.01525, allocations: 0 / 327.2 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.18e-05/0.01529, allocations: 7.984 kB / 327.2 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.467e-06/0.01529, allocations: 0 / 327.2 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002038/0.01733, allocations: 1.069 MB / 328.3 MB, free: 4.602 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.01734, allocations: 0 / 328.3 MB, free: 4.602 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.01736, allocations: 0.625 kB / 328.3 MB, free: 4.602 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009386/0.0183, allocations: 0.5338 MB / 328.8 MB, free: 4.066 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.0183, allocations: 0 / 328.8 MB, free: 4.066 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.01831, allocations: 0 / 328.8 MB, free: 4.066 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.01831, allocations: 0 / 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.0003082/0.01862, allocations: 341.5 kB / 329.2 MB, free: 3.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.01866, allocations: 12.03 kB / 329.2 MB, free: 3.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.544e-05/0.01868, allocations: 4.875 kB / 329.2 MB, free: 3.688 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.375e-05/0.01874, allocations: 105.8 kB / 329.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.01874, allocations: 384 / 329.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-06/0.01875, allocations: 4.375 kB / 329.3 MB, free: 3.555 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.22e-05/0.01881, allocations: 55.97 kB / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.43e-06/0.01882, allocations: 192 / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.621e-06/0.01882, allocations: 384 / 329.3 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.01883, allocations: 7.938 kB / 329.3 MB, free: 3.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.602e-05/0.01885, allocations: 29.7 kB / 329.4 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.258e-05/0.01891, allocations: 64.97 kB / 329.4 MB, free: 3.367 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.93e-05/0.01895, allocations: 44.22 kB / 329.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.546e-05/0.01896, allocations: 38.64 kB / 329.5 MB, free: 3.262 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-06/0.01897, allocations: 0 / 329.5 MB, free: 3.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.019, allocations: 56.27 kB / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.019, allocations: 0 / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001122/0.01911, allocations: 114.8 kB / 329.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.01914, allocations: 85.05 kB / 329.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.307e-05/0.01918, allocations: 89.86 kB / 329.9 MB, free: 2.855 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.707e-06/0.01919, allocations: 29.83 kB / 329.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.929e-05/0.0192, allocations: 80.14 kB / 330 MB, free: 2.738 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.01922, allocations: 5.203 kB / 330 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.01924, allocations: 9.719 kB / 330 MB, free: 2.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.206e-05/0.01931, allocations: 318.8 kB / 330.3 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.262e-05/0.01932, allocations: 29.69 kB / 330.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.164e-05/0.01934, allocations: 25.7 kB / 330.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.771e-05/0.01937, allocations: 60.27 kB / 330.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.01938, allocations: 0 / 330.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.738e-05/0.01942, allocations: 97.09 kB / 330.5 MB, free: 2.145 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.01945, allocations: 29.7 kB / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.01946, allocations: 0 / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.01947, allocations: 0 / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.522e-06/0.01947, allocations: 0 / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/0.01947, allocations: 0 / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.282e-05/0.01948, allocations: 4 kB / 330.5 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.01949, allocations: 3.938 kB / 330.5 MB, free: 2.102 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 6.257e-05/0.01955, allocations: 135.5 kB / 330.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-06/0.01956, allocations: 4 kB / 330.7 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.158e-05/0.01957, allocations: 7.016 kB / 330.7 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.61e-07/0.01957, allocations: 4 kB / 330.7 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.01957, allocations: 0 / 330.7 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.01958, allocations: 0 / 330.7 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.235e-05/0.01962, allocations: 69.83 kB / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.01962, allocations: 0 / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.01962, allocations: 0 / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.01962, allocations: 0 / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.01962, allocations: 7.938 kB / 330.8 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.01962, allocations: 0 / 330.8 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.01963, allocations: 3.984 kB / 330.8 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.14e-05/0.0197, allocations: 124.4 kB / 330.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-06/0.0197, allocations: 0.9688 kB / 330.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.027e-05/0.01971, allocations: 0 / 330.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.633e-06/0.01972, allocations: 7.984 kB / 330.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.919e-06/0.01973, allocations: 0 / 330.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.01973, allocations: 0 / 330.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.622e-06/0.01974, allocations: 4.859 kB / 330.9 MB, free: 1.676 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01974, allocations: 0 / 330.9 MB, free: 1.676 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002701/0.02001, allocations: 159.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.0005092/0.02052, allocations: 428.8 kB / 331.5 MB, free: 1.109 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.813e-05/0.0206, allocations: 111.7 kB / 331.6 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.0206, allocations: 4.062 kB / 331.6 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.761e-05/0.02063, allocations: 93.89 kB / 331.7 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.788e-05/0.02067, allocations: 7.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.00013/0.0208, 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.426e-05/0.02083, allocations: 51.36 kB / 331.8 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.933e-06/0.02084, allocations: 3.984 kB / 331.8 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.648e-05/0.02087, allocations: 55.38 kB / 331.9 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.02087, allocations: 0 / 331.9 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of Templates: time 0.006241/0.02711, allocations: 6.091 MB / 338 MB, free: 10.48 MB / 314.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] 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","",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.991333371028304]