Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009324/0.0009324, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 150.1 kB / 24.81 MB, free: 9.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9921/0.9921, allocations: 173.4 MB / 201.4 MB, free: 9.199 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.5e-05/2.68e-05, allocations: 6.25 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001712/0.001739, allocations: 1.222 MB / 269.6 MB, free: 4.988 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.004026, allocations: 2.049 MB / 271.6 MB, free: 2.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.028e-05/0.004057, allocations: 0 / 271.6 MB, free: 2.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.162e-05/0.004078, allocations: 4 kB / 271.6 MB, free: 2.926 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001131/0.005209, allocations: 438.4 kB / 272.1 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.433e-05/0.005233, allocations: 7.938 kB / 272.1 MB, free: 2.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.303e-05/0.005276, allocations: 15.92 kB / 272.1 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.122e-05/0.005308, allocations: 0 / 272.1 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.193e-05/0.00534, allocations: 7.938 kB / 272.1 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.111e-05/0.005391, allocations: 4 kB / 272.1 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.005401, allocations: 4 kB / 272.1 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006229/0.006024, allocations: 447.3 kB / 272.5 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.295e-05/0.006037, allocations: 3.984 kB / 272.5 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.416e-05/0.006051, allocations: 4 kB / 272.6 MB, free: 2.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.006548, allocations: 419 kB / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.006551, allocations: 0 / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.006552, allocations: 0 / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.006556, allocations: 0 / 273 MB, free: 1.602 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004327/0.006989, allocations: 435.5 kB / 273.4 MB, free: 1.141 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.007036, allocations: 20.86 kB / 273.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.586e-05/0.007102, allocations: 120.5 kB / 273.5 MB, free: 1.004 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.007235, allocations: 235.8 kB / 273.8 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/0.007303, allocations: 238.8 kB / 274 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.762e-05/0.00737, allocations: 242.8 kB / 274.2 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.205e-05/0.007452, allocations: 149.4 kB / 274.4 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.348e-05/0.007506, allocations: 123.4 kB / 274.5 MB, free: 16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.034e-05/0.007586, allocations: 242.3 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.949e-05/0.007656, allocations: 242.4 kB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.414e-05/0.00773, allocations: 246.3 kB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.007975, allocations: 0.5452 MB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.361e-05/0.008069, allocations: 269.4 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.008104, allocations: 130.9 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.008133, allocations: 123.2 kB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.43e-05/0.008217, allocations: 53.02 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.874e-06/0.008219, allocations: 0 / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.000105/0.008324, allocations: 37.69 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.008353, allocations: 55.34 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.627e-05/0.008419, allocations: 153.9 kB / 276.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.008429, allocations: 29.7 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.516e-05/0.008464, allocations: 139 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.2e-05/0.008476, allocations: 0 / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.0085, allocations: 15.38 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.008619, allocations: 496.1 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.008628, allocations: 3.938 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.12e-06/0.008634, allocations: 0 / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.119e-05/0.008655, allocations: 11.69 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.008656, allocations: 0 / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.962e-05/0.008706, allocations: 41.64 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.008719, allocations: 12.09 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.008725, allocations: 0 / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.488e-06/0.008734, allocations: 0 / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.142e-05/0.008756, allocations: 7.938 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.008759, allocations: 0 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.106e-05/0.00877, allocations: 0 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-06/0.008774, allocations: 3.938 kB / 277.3 MB, free: 13.05 MB / 266.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.571e-05/0.008839, allocations: 156.6 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-06/0.008846, allocations: 0 / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.008868, allocations: 3.156 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.008871, allocations: 7.984 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.008873, allocations: 7.938 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.008876, allocations: 4.125 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.938e-05/0.008945, allocations: 89.27 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.008947, allocations: 0 / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.885e-06/0.008949, allocations: 7.984 kB / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.00895, allocations: 0 / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-06/0.008954, allocations: 0 / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.008955, allocations: 0 / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.008956, allocations: 0 / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.048e-05/0.009016, allocations: 80.36 kB / 277.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-06/0.009021, allocations: 4.031 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-06/0.009028, allocations: 3.938 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.522e-06/0.009035, allocations: 4 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-06/0.009042, allocations: 0 / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.009044, allocations: 0 / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.066e-05/0.009085, allocations: 131.1 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009085, allocations: 0 / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003125/0.009397, allocations: 131.6 kB / 277.9 MB, free: 12.37 MB / 266.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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0008752/0.01027, allocations: 0.5418 MB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.525e-05/0.01034, allocations: 11.67 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.01034, allocations: 4 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.107e-05/0.01035, allocations: 15.73 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.01047, allocations: 4 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004074/0.01088, allocations: 118.3 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.482e-05/0.01091, allocations: 51.36 kB / 278.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.218e-05/0.01093, allocations: 11.92 kB / 278.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.01097, allocations: 74.2 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01097, allocations: 4.062 kB / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of Templates: time 0.004763/0.01574, allocations: 3.443 MB / 282.2 MB, free: 8.121 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.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.826216225977987]