Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009518/0.0009518, allocations: 80.92 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.00106/0.00106, allocations: 169 kB / 24.91 MB, free: 8.723 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.936/0.936, allocations: 177.1 MB / 205.3 MB, free: 4.488 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.1496/0.1496, allocations: 32.8 MB / 294.6 MB, free: 15.45 MB / 282.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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 323.2 MB, free: 2.844 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.351e-05/2.486e-05, allocations: 6.25 kB / 323.2 MB, free: 2.836 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001464/0.001489, allocations: 0.4962 MB / 323.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.002898, allocations: 1.399 MB / 325.1 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.306e-05/0.002921, allocations: 0 / 325.1 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.235e-05/0.002934, allocations: 0 / 325.1 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.003123, allocations: 19.91 kB / 325.1 MB, free: 0.9141 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.0008962/0.004019, allocations: 268.8 kB / 325.4 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.34e-05/0.004063, allocations: 3.938 kB / 325.4 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.437e-05/0.004097, allocations: 7.984 kB / 325.4 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.834e-05/0.004125, allocations: 0 / 325.4 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.913e-05/0.004165, allocations: 10.67 kB / 325.4 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.404e-06/0.004172, allocations: 0 / 325.4 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002551/0.006723, allocations: 0.9975 MB / 326.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.271e-05/0.006735, allocations: 0 / 326.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.999e-05/0.006755, allocations: 4 kB / 326.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.007097, allocations: 219.4 kB / 326.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.007101, allocations: 0 / 326.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.007102, allocations: 0 / 326.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.007106, allocations: 0 / 326.6 MB, free: 15.68 MB / 314.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.0002988/0.007405, allocations: 282 kB / 326.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.007438, allocations: 15.98 kB / 326.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.007462, allocations: 0.9375 kB / 326.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.289e-05/0.007535, allocations: 114.1 kB / 327 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.007545, allocations: 4.312 kB / 327 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.007553, allocations: 384 / 327 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.038e-05/0.007623, allocations: 59.95 kB / 327.1 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.00763, allocations: 192 / 327.1 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.007638, allocations: 8.125 kB / 327.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.007643, allocations: 0 / 327.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.466e-05/0.007658, allocations: 33.64 kB / 327.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.043e-05/0.007718, allocations: 57.05 kB / 327.2 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.448e-05/0.007763, allocations: 52.25 kB / 327.2 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.745e-05/0.00778, allocations: 34.55 kB / 327.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-06/0.007783, allocations: 0 / 327.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.007813, allocations: 60.33 kB / 327.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.007814, allocations: 0 / 327.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001075/0.007921, allocations: 110.8 kB / 327.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.007957, allocations: 81.11 kB / 327.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.902e-05/0.008016, allocations: 102.9 kB / 327.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.008025, allocations: 33.73 kB / 327.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.846e-05/0.008043, allocations: 80.14 kB / 327.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.198e-05/0.008055, allocations: 3.938 kB / 327.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.008079, allocations: 17.7 kB / 327.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.823e-05/0.008147, allocations: 314.8 kB / 328 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.494e-05/0.008162, allocations: 25.7 kB / 328.1 MB, free: 14.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.23e-05/0.008174, allocations: 29.7 kB / 328.1 MB, free: 13.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.985e-05/0.008204, allocations: 56.27 kB / 328.2 MB, free: 13.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.008207, allocations: 8 kB / 328.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.864e-05/0.008256, allocations: 89.16 kB / 328.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.00828, allocations: 29.7 kB / 328.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.008285, allocations: 0 / 328.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.008297, allocations: 4 kB / 328.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.589e-06/0.008301, allocations: 0 / 328.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-06/0.008304, allocations: 3.938 kB / 328.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.188e-05/0.008316, allocations: 3.938 kB / 328.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-06/0.008322, allocations: 0 / 328.3 MB, free: 13.75 MB / 314.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.154e-05/0.008384, allocations: 139.5 kB / 328.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-06/0.008389, allocations: 3.984 kB / 328.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.298e-06/0.008398, allocations: 7.188 kB / 328.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.008401, allocations: 4 kB / 328.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.008402, allocations: 0 / 328.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.008406, allocations: 3.938 kB / 328.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.494e-05/0.008451, allocations: 61.91 kB / 328.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.008452, allocations: 0 / 328.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.008454, allocations: 7.984 kB / 328.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.008455, allocations: 3.938 kB / 328.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-06/0.008459, allocations: 0 / 328.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.00846, allocations: 0 / 328.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.00846, allocations: 0 / 328.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.169e-05/0.008532, allocations: 124.4 kB / 328.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-06/0.008538, allocations: 7.984 kB / 328.6 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-06/0.008547, allocations: 0 / 328.6 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.739e-06/0.008552, allocations: 0 / 328.6 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-06/0.00856, allocations: 0 / 328.6 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.008563, allocations: 7.984 kB / 328.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.036e-05/0.008573, allocations: 4.859 kB / 328.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.008573, allocations: 0 / 328.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002045/0.008778, allocations: 63.86 kB / 328.7 MB, free: 13.25 MB / 314.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.00064/0.009418, allocations: 395.9 kB / 329.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.284e-05/0.009511, allocations: 123.6 kB / 329.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.009513, allocations: 0 / 329.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-05/0.00954, allocations: 85.97 kB / 329.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.243e-05/0.009593, allocations: 4 kB / 329.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001547/0.009748, allocations: 126.3 kB / 329.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.676e-05/0.009774, allocations: 51.36 kB / 329.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.779e-06/0.009779, allocations: 0 / 329.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.009812, allocations: 55.5 kB / 329.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.009812, allocations: 4 kB / 329.5 MB, free: 12.42 MB / 314.7 MB Notification: Performance of Templates: time 0.003279/0.01309, allocations: 1.885 MB / 331.4 MB, free: 10.54 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.0260117230936885]