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.001031/0.001031, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001071/0.001071, allocations: 170 kB / 24.91 MB, free: 9.199 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 1.001/1.001, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2707/0.2707, allocations: 34.26 MB / 296.1 MB, free: 0.7227 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.192e-06/1.192e-06, allocations: 0 / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.538e-05/1.657e-05, allocations: 3.188 kB / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009075/0.0009241, allocations: 494.1 kB / 325.7 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007989/0.001723, allocations: 0.9194 MB / 326.6 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.211e-05/0.001745, allocations: 0 / 326.6 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.001758, allocations: 0 / 326.6 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.001935, allocations: 8 kB / 326.6 MB, free: 6.305 MB / 298.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.0004037/0.002339, allocations: 79.67 kB / 326.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.625e-05/0.002385, allocations: 0 / 326.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.383e-05/0.002419, allocations: 4.625 kB / 326.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.037e-05/0.00245, allocations: 7.984 kB / 326.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.287e-05/0.002482, allocations: 0 / 326.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.955e-06/0.00249, allocations: 0 / 326.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.002593, allocations: 55.94 kB / 326.8 MB, free: 6.176 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.002601, allocations: 3.938 kB / 326.8 MB, free: 6.172 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.332e-05/0.002615, allocations: 4 kB / 326.8 MB, free: 6.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.002735, allocations: 59.8 kB / 326.8 MB, free: 6.109 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.002736, allocations: 4 kB / 326.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.002737, allocations: 0 / 326.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.00274, allocations: 0 / 326.8 MB, free: 6.105 MB / 298.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.0002256/0.002966, allocations: 259 kB / 327.1 MB, free: 5.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.002995, allocations: 8.031 kB / 327.1 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.179e-05/0.003017, allocations: 0.9375 kB / 327.1 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.739e-05/0.003084, allocations: 105.8 kB / 327.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.003092, allocations: 384 / 327.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.003101, allocations: 384 / 327.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.518e-05/0.003166, allocations: 63.95 kB / 327.3 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.962e-06/0.003172, allocations: 4.188 kB / 327.3 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-06/0.003178, allocations: 384 / 327.3 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.003181, allocations: 4.312 kB / 327.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.423e-05/0.003196, allocations: 33.64 kB / 327.3 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.451e-05/0.00325, allocations: 53.73 kB / 327.4 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.725e-05/0.003287, allocations: 48.25 kB / 327.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.003303, allocations: 34.56 kB / 327.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-06/0.003306, allocations: 0 / 327.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.003337, allocations: 64.31 kB / 327.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.003337, allocations: 0 / 327.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.809e-05/0.003436, allocations: 114.8 kB / 327.6 MB, free: 5.176 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.003474, allocations: 85.11 kB / 327.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.768e-05/0.003531, allocations: 98.7 kB / 327.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.328e-06/0.003541, allocations: 25.7 kB / 327.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.068e-05/0.003561, allocations: 80.14 kB / 327.9 MB, free: 4.852 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.003578, allocations: 8.297 kB / 327.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.003598, allocations: 13.7 kB / 327.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.48e-05/0.003673, allocations: 318.8 kB / 328.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.003686, allocations: 25.7 kB / 328.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.245e-05/0.003699, allocations: 25.95 kB / 328.3 MB, free: 4.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.298e-05/0.003732, allocations: 72.25 kB / 328.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.003734, allocations: 0 / 328.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.589e-05/0.00378, allocations: 81.11 kB / 328.4 MB, free: 4.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.003802, allocations: 33.7 kB / 328.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-06/0.003806, allocations: 0 / 328.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.003814, allocations: 0 / 328.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.687e-06/0.003818, allocations: 3.984 kB / 328.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/0.003821, allocations: 0 / 328.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.768e-06/0.003831, allocations: 4 kB / 328.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.003835, allocations: 4.031 kB / 328.5 MB, free: 4.207 MB / 298.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 5.427e-05/0.00389, allocations: 139.5 kB / 328.6 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-06/0.003894, allocations: 4 kB / 328.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.506e-06/0.003902, allocations: 3 kB / 328.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.003905, allocations: 3.984 kB / 328.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.003906, allocations: 0 / 328.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.003909, allocations: 0 / 328.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.446e-05/0.003953, allocations: 70.33 kB / 328.7 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.003954, allocations: 0 / 328.7 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-06/0.003955, allocations: 3.938 kB / 328.7 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.003959, allocations: 8 kB / 328.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-06/0.003962, allocations: 0 / 328.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.11e-07/0.003962, allocations: 3.938 kB / 328.7 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.003964, allocations: 4 kB / 328.7 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.848e-05/0.004023, allocations: 112.5 kB / 328.8 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-06/0.004027, allocations: 0 / 328.8 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.004037, allocations: 0 / 328.8 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.018e-06/0.004041, allocations: 4 kB / 328.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.935e-06/0.004049, allocations: 0 / 328.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-06/0.00405, allocations: 0 / 328.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.705e-06/0.004058, allocations: 12.88 kB / 328.8 MB, free: 3.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004058, allocations: 0 / 328.8 MB, free: 3.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001092/0.004167, allocations: 27.92 kB / 328.9 MB, free: 3.754 MB / 298.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.0003742/0.004542, allocations: 192.2 kB / 329.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.779e-05/0.004629, allocations: 123.6 kB / 329.2 MB, free: 3.469 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.004632, allocations: 0 / 329.2 MB, free: 3.469 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.198e-05/0.004664, allocations: 89.95 kB / 329.3 MB, free: 3.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.426e-05/0.004718, allocations: 7.875 kB / 329.3 MB, free: 3.352 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001613/0.004879, allocations: 114 kB / 329.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.267e-05/0.004912, allocations: 59.48 kB / 329.4 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.004919, allocations: 4 kB / 329.4 MB, free: 3.125 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.722e-05/0.004966, allocations: 55.36 kB / 329.5 MB, free: 3.07 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.004966, allocations: 0 / 329.5 MB, free: 3.07 MB / 298.7 MB Notification: Performance of Templates: time 0.002046/0.007012, allocations: 0.7629 MB / 330.3 MB, free: 2.312 MB / 298.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: 2.834174567833543]