Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.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.001027/0.001027, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001353/0.001353, allocations: 165.5 kB / 24.82 MB, free: 9.27 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.9904/0.9904, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.2886/0.2886, allocations: 34.27 MB / 296.1 MB, free: 0.6445 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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 378.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/2.038e-05, allocations: 2.312 kB / 378.5 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001028/0.001048, allocations: 499.7 kB / 379 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008872/0.001936, allocations: 0.904 MB / 379.9 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.1e-05/0.001967, allocations: 4 kB / 379.9 MB, free: 1 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.81e-05/0.001985, allocations: 0 / 379.9 MB, free: 1 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.002208, allocations: 11.94 kB / 379.9 MB, free: 0.9883 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000483/0.002691, allocations: 74.38 kB / 379.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.343e-05/0.002754, allocations: 4 kB / 379.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.436e-05/0.002788, allocations: 0 / 379.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.617e-05/0.002825, allocations: 0 / 379.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.824e-05/0.002863, allocations: 7.656 kB / 380 MB, free: 0.918 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-06/0.002872, allocations: 0 / 380 MB, free: 0.918 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.002984, allocations: 59.88 kB / 380 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.002994, allocations: 3.938 kB / 380 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.58e-05/0.00301, allocations: 4 kB / 380 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.003148, allocations: 59.91 kB / 380.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.744e-06/0.00315, allocations: 0 / 380.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.00315, allocations: 3.938 kB / 380.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.197e-06/0.003154, allocations: 0 / 380.1 MB, free: 0.7891 MB / 346.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.0003017/0.003455, allocations: 377.9 kB / 380.5 MB, free: 384 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.0035, allocations: 8.031 kB / 380.5 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.00353, allocations: 4.938 kB / 380.5 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.535e-05/0.003615, allocations: 104.6 kB / 380.6 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.003628, allocations: 4.375 kB / 380.6 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.857e-06/0.003637, allocations: 12.36 kB / 380.6 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.952e-05/0.003716, allocations: 51.97 kB / 380.6 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.003724, allocations: 192 / 380.6 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.003731, allocations: 384 / 380.6 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.003738, allocations: 4.375 kB / 380.6 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.745e-05/0.003756, allocations: 33.62 kB / 380.7 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.003863, allocations: 93.64 kB / 380.8 MB, free: 16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.378e-05/0.003907, allocations: 56.7 kB / 380.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.885e-05/0.003926, allocations: 41.33 kB / 380.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-06/0.00393, allocations: 4.062 kB / 380.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.003968, allocations: 63.09 kB / 380.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.003969, allocations: 0 / 380.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001646/0.004133, allocations: 126.7 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.004169, allocations: 81.11 kB / 381.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.583e-05/0.004245, allocations: 157.9 kB / 381.3 MB, free: 15.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.004255, allocations: 25.7 kB / 381.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.491e-05/0.00429, allocations: 126.9 kB / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.004308, allocations: 0 / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.213e-05/0.00433, allocations: 19.38 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.004453, allocations: 496.3 kB / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.706e-05/0.00447, allocations: 33.7 kB / 382 MB, free: 14.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.546e-05/0.004485, allocations: 29.7 kB / 382 MB, free: 14.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.525e-05/0.004521, allocations: 71.08 kB / 382.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.004522, allocations: 0 / 382.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.031e-05/0.004583, allocations: 89.05 kB / 382.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.004612, allocations: 29.7 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.00462, allocations: 0 / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.004635, allocations: 4 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.004636, allocations: 0 / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.004639, allocations: 4.094 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.202e-05/0.004651, allocations: 0 / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.00466, allocations: 7.922 kB / 382.2 MB, free: 14.37 MB / 362.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.192e-05/0.004732, allocations: 182.3 kB / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-06/0.004736, allocations: 0 / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.277e-05/0.004749, allocations: 3 kB / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.004751, allocations: 4 kB / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.004753, allocations: 0 / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.004756, allocations: 0 / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.517e-05/0.004811, allocations: 93.2 kB / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.004813, allocations: 7.984 kB / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.004814, allocations: 0 / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.004816, allocations: 4 kB / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.004822, allocations: 4 kB / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.004823, allocations: 0 / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.004824, allocations: 7.922 kB / 382.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.992e-05/0.004904, allocations: 135.7 kB / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-06/0.004909, allocations: 4 kB / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.00492, allocations: 0 / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.628e-06/0.004924, allocations: 0 / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-06/0.004934, allocations: 4.031 kB / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-06/0.004936, allocations: 0 / 382.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.407e-05/0.00497, allocations: 123.2 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00497, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001406/0.00511, allocations: 23.92 kB / 382.8 MB, free: 13.71 MB / 362.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.0003187/0.005429, allocations: 196.8 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.005539, allocations: 122.5 kB / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.005541, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.877e-05/0.00558, allocations: 92.73 kB / 383.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.526e-05/0.005675, allocations: 10.09 kB / 383.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001569/0.005832, allocations: 123 kB / 383.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.823e-05/0.00586, allocations: 51.36 kB / 383.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.201e-06/0.005866, allocations: 4 kB / 383.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.005906, allocations: 70.2 kB / 383.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.005906, allocations: 0 / 383.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of Templates: time 0.00236/0.008266, allocations: 0.7734 MB / 384.2 MB, free: 12.21 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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.1703877970576286]