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.001022/0.001022, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001198/0.001198, allocations: 166.2 kB / 24.99 MB, free: 8.355 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.9828/0.9828, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.258/0.258, allocations: 34.26 MB / 296 MB, free: 0.7617 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.473e-06/1.473e-06, allocations: 0 / 378 MB, free: 3.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.671e-05/2.818e-05, allocations: 5.828 kB / 378 MB, free: 3.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00121/0.001238, allocations: 0.4892 MB / 378.5 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009089/0.002147, allocations: 0.9039 MB / 379.4 MB, free: 1.609 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.859e-05/0.002175, allocations: 4 kB / 379.4 MB, free: 1.605 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.56e-05/0.002191, allocations: 0 / 379.4 MB, free: 1.605 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.002389, allocations: 0 / 379.4 MB, free: 1.605 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.0005549/0.002943, allocations: 76.33 kB / 379.5 MB, free: 1.539 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.749e-05/0.003001, allocations: 4 kB / 379.5 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.051e-05/0.003031, allocations: 0 / 379.5 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.043e-05/0.003062, allocations: 7.969 kB / 379.5 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.113e-05/0.003103, allocations: 5.828 kB / 379.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.936e-06/0.003112, allocations: 4 kB / 379.5 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.003222, allocations: 51.95 kB / 379.5 MB, free: 1.469 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.00323, allocations: 3.938 kB / 379.5 MB, free: 1.465 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.845e-05/0.003249, allocations: 0 / 379.5 MB, free: 1.465 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.003403, allocations: 59.8 kB / 379.6 MB, free: 1.406 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.003407, allocations: 4 kB / 379.6 MB, free: 1.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.003408, allocations: 0 / 379.6 MB, free: 1.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.003412, allocations: 0 / 379.6 MB, free: 1.402 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.0002881/0.0037, allocations: 377.9 kB / 380 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.003734, allocations: 8.031 kB / 380 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.653e-05/0.003771, allocations: 4.938 kB / 380 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.043e-05/0.003861, allocations: 108.6 kB / 380.1 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.003872, allocations: 384 / 380.1 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.478e-06/0.003882, allocations: 4.375 kB / 380.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.359e-05/0.003965, allocations: 63.89 kB / 380.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.74e-06/0.003971, allocations: 192 / 380.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.003979, allocations: 384 / 380.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.003987, allocations: 4.375 kB / 380.2 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.845e-05/0.004005, allocations: 29.64 kB / 380.2 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.664e-05/0.004102, allocations: 109 kB / 380.3 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.54e-05/0.004147, allocations: 56.77 kB / 380.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.312e-05/0.00417, allocations: 41.45 kB / 380.4 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.39e-06/0.004176, allocations: 3.984 kB / 380.4 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.00421, allocations: 71.03 kB / 380.5 MB, free: 380 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.004211, allocations: 0 / 380.5 MB, free: 380 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.000164/0.004375, allocations: 114.8 kB / 380.6 MB, free: 240 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.00442, allocations: 85.09 kB / 380.7 MB, free: 136 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.306e-05/0.004503, allocations: 157.9 kB / 380.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-06/0.004511, allocations: 25.7 kB / 380.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.772e-05/0.004539, allocations: 127.1 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.004554, allocations: 8 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.004576, allocations: 15.38 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.004679, allocations: 492.1 kB / 381.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.011e-05/0.004699, allocations: 33.64 kB / 381.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.019e-05/0.004719, allocations: 33.62 kB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.843e-05/0.004758, allocations: 67.09 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.00476, allocations: 0 / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.298e-05/0.004823, allocations: 85.11 kB / 381.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.004852, allocations: 37.69 kB / 381.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.004857, allocations: 4.094 kB / 381.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.004867, allocations: 0 / 381.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.004868, allocations: 0 / 381.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.004873, allocations: 0 / 381.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.285e-05/0.004886, allocations: 3.938 kB / 381.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.004892, allocations: 0 / 381.7 MB, free: 14.96 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.103e-05/0.004963, allocations: 194.2 kB / 381.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-06/0.004968, allocations: 0 / 381.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.958e-06/0.004978, allocations: 7 kB / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.00498, allocations: 0 / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.004983, allocations: 4 kB / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.004989, allocations: 11.91 kB / 381.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.516e-05/0.005044, allocations: 104.6 kB / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.005046, allocations: 4 kB / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.005047, allocations: 0 / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.005049, allocations: 0 / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.005055, allocations: 0 / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.005056, allocations: 0 / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.005057, allocations: 0 / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.979e-05/0.005146, allocations: 135.8 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-06/0.005151, allocations: 0 / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.005165, allocations: 4.031 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.16e-06/0.00517, allocations: 0 / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.005183, allocations: 4 kB / 382.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.005186, allocations: 7.922 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.132e-05/0.005217, allocations: 119.2 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005217, allocations: 0 / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001555/0.005373, allocations: 23.88 kB / 382.3 MB, free: 14.27 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.0003826/0.005755, allocations: 212.1 kB / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.005862, allocations: 122.5 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.005863, allocations: 4.062 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.005901, allocations: 88.8 kB / 382.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001074/0.006009, allocations: 0 / 382.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001838/0.006192, allocations: 127 kB / 382.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.076e-05/0.006223, allocations: 51.36 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.006229, allocations: 0 / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.17e-05/0.00624, allocations: 8.5 kB / 382.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.006241, allocations: 0 / 382.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of Templates: time 0.002397/0.008638, allocations: 0.6847 MB / 383.6 MB, free: 12.91 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.1472680210135877]