Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001632/0.001632, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001081/0.001081, allocations: 158.3 kB / 24.99 MB, free: 9.285 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.9943/0.9943, allocations: 177.1 MB / 205.3 MB, free: 5.613 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.2926/0.2926, allocations: 32.8 MB / 294.6 MB, free: 1.301 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.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 376 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.456e-05/2.587e-05, allocations: 9.344 kB / 376 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001184/0.00121, allocations: 0.4892 MB / 376.5 MB, free: 4.527 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008539/0.002064, allocations: 0.9038 MB / 377.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.724e-05/0.002091, allocations: 0 / 377.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.002106, allocations: 0 / 377.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.002294, allocations: 11.97 kB / 377.4 MB, free: 3.609 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0004816/0.002776, allocations: 65.55 kB / 377.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.27e-05/0.002828, allocations: 4 kB / 377.5 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.186e-05/0.00286, allocations: 7.984 kB / 377.5 MB, free: 3.543 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.995e-05/0.00289, allocations: 4 kB / 377.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.945e-05/0.00293, allocations: 4 kB / 377.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.002938, allocations: 0 / 377.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.003039, allocations: 51.94 kB / 377.5 MB, free: 3.484 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.003047, allocations: 3.938 kB / 377.5 MB, free: 3.48 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.817e-05/0.003065, allocations: 0 / 377.5 MB, free: 3.48 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.003211, allocations: 63.8 kB / 377.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.003214, allocations: 0 / 377.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003215, allocations: 0 / 377.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.003219, allocations: 0 / 377.6 MB, free: 3.418 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.0002742/0.003493, allocations: 385.9 kB / 378 MB, free: 2.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.003527, allocations: 8.031 kB / 378 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.003563, allocations: 4.938 kB / 378 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.801e-05/0.003641, allocations: 104.6 kB / 378.1 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.003651, allocations: 384 / 378.1 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-06/0.00366, allocations: 4.375 kB / 378.1 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.056e-05/0.00374, allocations: 59.89 kB / 378.1 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.003746, allocations: 192 / 378.1 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.003753, allocations: 384 / 378.1 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.003759, allocations: 4.375 kB / 378.1 MB, free: 2.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.57e-05/0.003775, allocations: 33.64 kB / 378.2 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.344e-05/0.003868, allocations: 113 kB / 378.3 MB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.068e-05/0.003909, allocations: 56.7 kB / 378.3 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.185e-05/0.003931, allocations: 45.47 kB / 378.4 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-06/0.003935, allocations: 0 / 378.4 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.003968, allocations: 63.03 kB / 378.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.003968, allocations: 0 / 378.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.000158/0.004126, allocations: 126.8 kB / 378.6 MB, free: 2.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.004161, allocations: 77.11 kB / 378.6 MB, free: 2.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.919e-05/0.00423, allocations: 158 kB / 378.8 MB, free: 1.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-06/0.004238, allocations: 25.7 kB / 378.8 MB, free: 1.941 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.804e-05/0.004266, allocations: 126.9 kB / 378.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.004281, allocations: 4 kB / 379 MB, free: 1.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.004304, allocations: 19.38 kB / 379 MB, free: 1.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.004409, allocations: 492.1 kB / 379.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.501e-05/0.004424, allocations: 29.7 kB / 379.5 MB, free: 1.254 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.28e-05/0.004437, allocations: 29.69 kB / 379.5 MB, free: 1.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.619e-05/0.004473, allocations: 67.03 kB / 379.6 MB, free: 1.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.004475, allocations: 192 / 379.6 MB, free: 1.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.28e-05/0.004537, allocations: 93.11 kB / 379.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.004563, allocations: 37.69 kB / 379.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.004567, allocations: 0 / 379.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.004578, allocations: 0 / 379.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.183e-06/0.004579, allocations: 0 / 379.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.004584, allocations: 0 / 379.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.201e-05/0.004596, allocations: 3.938 kB / 379.7 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.004602, allocations: 0 / 379.7 MB, free: 0.9805 MB / 346.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.374e-05/0.004665, allocations: 182.3 kB / 379.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-06/0.00467, allocations: 0 / 379.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-06/0.004678, allocations: 11.03 kB / 379.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.004682, allocations: 3.984 kB / 379.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.004686, allocations: 7.938 kB / 379.9 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.004689, allocations: 3.938 kB / 379.9 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.357e-05/0.004742, allocations: 108.6 kB / 380 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.004743, allocations: 4 kB / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.004744, allocations: 0 / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.004745, allocations: 3.984 kB / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.004752, allocations: 0 / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.004752, allocations: 3.938 kB / 380 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.004753, allocations: 4 kB / 380 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.481e-05/0.004838, allocations: 131.8 kB / 380.2 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-06/0.004843, allocations: 4 kB / 380.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.004855, allocations: 0 / 380.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.1e-06/0.00486, allocations: 0 / 380.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.285e-05/0.004873, allocations: 7.984 kB / 380.2 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.004876, allocations: 0 / 380.2 MB, free: 440 kB / 346.7 MB Notification: Performance of sorting global known variables: time 2.76e-05/0.004903, allocations: 119.2 kB / 380.3 MB, free: 320 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.004903, allocations: 0 / 380.3 MB, free: 320 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001508/0.005054, allocations: 23.88 kB / 380.3 MB, free: 296 kB / 346.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.0003329/0.005387, allocations: 204.8 kB / 380.5 MB, free: 116 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.005496, allocations: 122.5 kB / 380.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.005498, allocations: 0 / 380.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.908e-05/0.005527, allocations: 88.8 kB / 380.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.867e-05/0.005625, allocations: 10.17 kB / 380.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001584/0.005784, allocations: 115.1 kB / 380.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.693e-05/0.005811, allocations: 51.36 kB / 380.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.739e-06/0.005815, allocations: 0 / 380.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.126e-05/0.005827, allocations: 8.5 kB / 380.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.005827, allocations: 4.125 kB / 380.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of Templates: time 0.002299/0.008126, allocations: 0.6892 MB / 381.6 MB, free: 14.94 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.0545392399653792]