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.0009428/0.0009428, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.0009734/0.0009734, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9459/0.9459, allocations: 177.1 MB / 205 MB, free: 5.613 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.2566/0.2566, allocations: 34.26 MB / 295.7 MB, free: 0.6875 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.443e-06/1.443e-06, allocations: 3.938 kB / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.618e-05, allocations: 2.312 kB / 378 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001337/0.001364, allocations: 496.5 kB / 378.5 MB, free: 2.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004091/0.005455, allocations: 0.9078 MB / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.347e-05/0.005478, allocations: 0 / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.005495, allocations: 4 kB / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.005689, allocations: 7.922 kB / 379.4 MB, free: 1.23 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.0004992/0.006188, allocations: 61.17 kB / 379.5 MB, free: 1.176 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.815e-05/0.006246, allocations: 15.98 kB / 379.5 MB, free: 1.16 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.814e-05/0.006274, allocations: 0 / 379.5 MB, free: 1.16 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.723e-05/0.006302, allocations: 3.984 kB / 379.5 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.703e-05/0.006359, allocations: 4 kB / 379.5 MB, free: 1.152 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.006367, allocations: 0 / 379.5 MB, free: 1.152 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.006479, allocations: 55.83 kB / 379.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.006486, allocations: 0 / 379.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.664e-05/0.006503, allocations: 0 / 379.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.006647, allocations: 59.86 kB / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.00665, allocations: 0 / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.006651, allocations: 0 / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.006655, allocations: 4 kB / 379.6 MB, free: 1.035 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.0002933/0.006948, allocations: 381.9 kB / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.006985, allocations: 8.031 kB / 380 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.007019, allocations: 4.938 kB / 380 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.568e-05/0.007095, allocations: 104.6 kB / 380.1 MB, free: 488 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.007106, allocations: 4.312 kB / 380.1 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-06/0.007114, allocations: 4.375 kB / 380.1 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.233e-05/0.007187, allocations: 55.95 kB / 380.2 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.007193, allocations: 192 / 380.2 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.007201, allocations: 384 / 380.2 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.007208, allocations: 8.375 kB / 380.2 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.798e-05/0.007226, allocations: 33.64 kB / 380.2 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003101/0.01033, allocations: 109 kB / 380.3 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.154e-05/0.01038, allocations: 60.69 kB / 380.4 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.313e-05/0.0104, allocations: 41.45 kB / 380.4 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.238e-06/0.01041, allocations: 0 / 380.4 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.01044, allocations: 59.09 kB / 380.5 MB, free: 12 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.01044, allocations: 0 / 380.5 MB, free: 12 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001833/0.01063, allocations: 122.8 kB / 380.6 MB, free: 15.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.01067, allocations: 85.23 kB / 380.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.355e-05/0.01073, allocations: 153.9 kB / 380.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.01074, allocations: 25.7 kB / 380.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.738e-05/0.01076, allocations: 130.9 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.01078, allocations: 11.92 kB / 381 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.0108, allocations: 19.31 kB / 381 MB, free: 15.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.01091, allocations: 496.1 kB / 381.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.674e-05/0.01092, allocations: 29.7 kB / 381.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.182e-05/0.01094, allocations: 25.7 kB / 381.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.526e-05/0.01097, allocations: 71.28 kB / 381.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01097, allocations: 0 / 381.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.666e-05/0.01103, allocations: 89.09 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.01105, allocations: 29.7 kB / 381.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.01106, allocations: 4 kB / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.01107, allocations: 0 / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.096e-06/0.01107, allocations: 0 / 381.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.01108, allocations: 7.938 kB / 381.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.208e-05/0.01109, allocations: 3.938 kB / 381.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-06/0.0111, allocations: 0 / 381.8 MB, free: 14.59 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.825e-05/0.01117, allocations: 186.3 kB / 381.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.01118, allocations: 0 / 381.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.03e-05/0.0112, allocations: 14.98 kB / 381.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.0112, allocations: 0 / 381.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.01121, allocations: 0 / 381.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.01121, allocations: 3.938 kB / 382 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.332e-05/0.01127, allocations: 104.6 kB / 382.1 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01127, allocations: 4 kB / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.01127, allocations: 0 / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.01127, allocations: 0 / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.01128, allocations: 0 / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.01128, allocations: 4 kB / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01128, allocations: 0 / 382.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.166e-05/0.01136, allocations: 135.8 kB / 382.2 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-06/0.01137, allocations: 3.938 kB / 382.2 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.01138, allocations: 3.984 kB / 382.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.51e-06/0.01138, allocations: 0 / 382.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.177e-05/0.0114, allocations: 7.984 kB / 382.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.0114, allocations: 0 / 382.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.608e-05/0.01142, allocations: 119.2 kB / 382.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01142, allocations: 0 / 382.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001422/0.01157, allocations: 31.94 kB / 382.4 MB, free: 13.9 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.0003242/0.01189, allocations: 199.5 kB / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.594e-05/0.01198, allocations: 118.5 kB / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01198, allocations: 0 / 382.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.888e-05/0.01201, allocations: 92.78 kB / 382.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.117e-05/0.0121, allocations: 0 / 382.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001715/0.01227, allocations: 127 kB / 382.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.703e-05/0.0123, allocations: 51.36 kB / 382.9 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.071e-06/0.0123, allocations: 3.984 kB / 382.9 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.01232, allocations: 12.62 kB / 382.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01232, allocations: 0 / 382.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of Templates: time 0.002394/0.01471, allocations: 0.7735 MB / 383.7 MB, free: 12.46 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.0091846040450037]