Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.0007795/0.0007795, allocations: 80.8 kB / 21.49 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.0008982/0.0008982, allocations: 169.1 kB / 24.91 MB, free: 9.191 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.9838/0.9838, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2514/0.2514, allocations: 34.26 MB / 296.1 MB, free: 0.7266 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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 325.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.42e-05, allocations: 5.859 kB / 325.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001447/0.001471, allocations: 0.5412 MB / 325.8 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.003061, allocations: 1.399 MB / 327.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.765e-05/0.003089, allocations: 0 / 327.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.003104, allocations: 0 / 327.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.003296, allocations: 7.938 kB / 327.2 MB, free: 5.707 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.004396, allocations: 259.4 kB / 327.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.00445, allocations: 0 / 327.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.92e-05/0.00449, allocations: 4.625 kB / 327.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.664e-05/0.004526, allocations: 4 kB / 327.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.362e-05/0.00458, allocations: 7.938 kB / 327.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.568e-06/0.004589, allocations: 0 / 327.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002656/0.007245, allocations: 1.012 MB / 328.5 MB, free: 4.703 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.859e-06/0.007255, allocations: 4 kB / 328.5 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.614e-05/0.007271, allocations: 0 / 328.5 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.007583, allocations: 215.4 kB / 328.7 MB, free: 4.488 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.007587, allocations: 0 / 328.7 MB, free: 4.488 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.007588, allocations: 0 / 328.7 MB, free: 4.488 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.007592, allocations: 0 / 328.7 MB, free: 4.488 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.000292/0.007884, allocations: 287.4 kB / 329 MB, free: 4.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.007918, allocations: 15.97 kB / 329 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.007945, allocations: 0.9375 kB / 329 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.021e-05/0.008025, allocations: 106.1 kB / 329.1 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.008034, allocations: 4.375 kB / 329.1 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-06/0.008039, allocations: 384 / 329.1 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.794e-05/0.008117, allocations: 59.95 kB / 329.2 MB, free: 3.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.008125, allocations: 192 / 329.2 MB, free: 3.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.008133, allocations: 8.062 kB / 329.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.008138, allocations: 0 / 329.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.712e-05/0.008156, allocations: 25.7 kB / 329.2 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.15e-05/0.008227, allocations: 61 kB / 329.3 MB, free: 3.848 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.008277, allocations: 48.31 kB / 329.3 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.809e-05/0.008295, allocations: 34.55 kB / 329.3 MB, free: 3.742 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-06/0.008299, allocations: 4 kB / 329.3 MB, free: 3.738 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.00834, allocations: 60.33 kB / 329.4 MB, free: 3.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.008341, allocations: 0 / 329.4 MB, free: 3.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001313/0.008473, allocations: 114.7 kB / 329.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.008513, allocations: 81.11 kB / 329.6 MB, free: 3.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.038e-05/0.008584, allocations: 106.6 kB / 329.7 MB, free: 3.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.776e-06/0.008592, allocations: 25.7 kB / 329.7 MB, free: 3.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.008619, allocations: 84.14 kB / 329.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.008635, allocations: 256 / 329.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.476e-05/0.00866, allocations: 13.72 kB / 329.8 MB, free: 3.176 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.947e-05/0.008759, allocations: 318.8 kB / 330.1 MB, free: 2.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.008783, allocations: 29.7 kB / 330.2 MB, free: 2.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.827e-05/0.008801, allocations: 25.7 kB / 330.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.017e-05/0.008852, allocations: 64.2 kB / 330.3 MB, free: 2.711 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.008856, allocations: 4 kB / 330.3 MB, free: 2.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.868e-05/0.008925, allocations: 89.09 kB / 330.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.008959, allocations: 29.7 kB / 330.4 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.008965, allocations: 0 / 330.4 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.008977, allocations: 4.094 kB / 330.4 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.803e-06/0.008979, allocations: 0 / 330.4 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.008983, allocations: 4 kB / 330.4 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/0.009001, allocations: 3.938 kB / 330.4 MB, free: 2.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.009008, allocations: 0 / 330.4 MB, free: 2.555 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 7.711e-05/0.009085, allocations: 143.5 kB / 330.5 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.296e-06/0.009093, allocations: 3.984 kB / 330.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.259e-05/0.009106, allocations: 3.156 kB / 330.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.009107, allocations: 0 / 330.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-06/0.009109, allocations: 0 / 330.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.009113, allocations: 7.938 kB / 330.5 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.295e-05/0.009166, allocations: 62.41 kB / 330.6 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.009167, allocations: 0 / 330.6 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.009167, allocations: 3.938 kB / 330.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.11e-07/0.009168, allocations: 0 / 330.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.009174, allocations: 4 kB / 330.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.009175, allocations: 0 / 330.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.009176, allocations: 0 / 330.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.389e-05/0.00926, allocations: 120.5 kB / 330.7 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.253e-06/0.009267, allocations: 7.984 kB / 330.7 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.009279, allocations: 0 / 330.7 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.921e-06/0.009285, allocations: 4.031 kB / 330.7 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-06/0.009295, allocations: 0 / 330.7 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.009298, allocations: 0 / 330.7 MB, free: 2.141 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.095e-05/0.009309, allocations: 8.859 kB / 330.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009309, allocations: 0 / 330.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002123/0.009521, allocations: 63.8 kB / 330.8 MB, free: 2.066 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.0007552/0.01028, allocations: 400.7 kB / 331.2 MB, free: 1.797 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.01039, allocations: 131.5 kB / 331.3 MB, free: 1.641 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.01039, allocations: 4.062 kB / 331.3 MB, free: 1.637 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.234e-05/0.01042, allocations: 85.97 kB / 331.4 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.504e-05/0.0105, allocations: 2.969 kB / 331.4 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001698/0.01067, allocations: 119 kB / 331.5 MB, free: 1.383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.076e-05/0.0107, allocations: 51.36 kB / 331.6 MB, free: 1.312 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.785e-06/0.01071, allocations: 4 kB / 331.6 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.951e-05/0.01075, allocations: 51.38 kB / 331.6 MB, free: 1.258 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01075, allocations: 0 / 331.6 MB, free: 1.258 MB / 298.7 MB Notification: Performance of Templates: time 0.003744/0.01449, allocations: 1.887 MB / 333.5 MB, free: 15.37 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.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.8261454040184617]