Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.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.0009097/0.0009097, allocations: 80.8 kB / 21.49 MB, free: 2.988 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.000886/0.000886, allocations: 174.2 kB / 24.92 MB, free: 9.18 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.9413/0.9413, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.925e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002377/0.002396, allocations: 1.29 MB / 274.7 MB, free: 28 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00325/0.005646, allocations: 2.181 MB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.005671, allocations: 4 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.953e-05/0.005691, allocations: 3.938 kB / 276.9 MB, free: 13.83 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378: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.001305/0.006996, allocations: 422.2 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.516e-05/0.007021, allocations: 3.984 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.19e-05/0.007073, allocations: 11.94 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.091e-05/0.007114, allocations: 15.91 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.692e-05/0.007151, allocations: 4 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.836e-05/0.007199, allocations: 0 / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.00721, allocations: 4 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009486/0.008159, allocations: 0.5382 MB / 277.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.008173, allocations: 4 kB / 277.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.501e-05/0.008188, allocations: 4 kB / 277.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006514/0.008839, allocations: 466.8 kB / 278.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.008841, allocations: 0 / 278.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.008842, allocations: 0 / 278.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.008847, allocations: 4 kB / 278.4 MB, free: 12.37 MB / 266.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.00047/0.009317, allocations: 324 kB / 278.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.009355, allocations: 11.97 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.009406, allocations: 80.2 kB / 278.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.009537, allocations: 189.1 kB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.833e-05/0.009586, allocations: 150.9 kB / 279.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.038e-05/0.009626, allocations: 154.9 kB / 279.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.977e-05/0.009686, allocations: 101.5 kB / 279.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/0.009711, allocations: 79.22 kB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.009757, allocations: 154.5 kB / 279.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.467e-05/0.009801, allocations: 154.6 kB / 279.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.071e-05/0.009842, allocations: 154.5 kB / 279.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.01003, allocations: 353.3 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.066e-05/0.01011, allocations: 173.2 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.912e-05/0.01014, allocations: 80.14 kB / 280.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.01016, allocations: 79.28 kB / 280.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.256e-05/0.01026, allocations: 51.34 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.893e-06/0.01026, allocations: 0 / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 9.989e-05/0.01036, allocations: 29.7 kB / 280.6 MB, free: 9.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.01039, allocations: 55.34 kB / 280.7 MB, free: 9.922 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.764e-05/0.01047, allocations: 106.7 kB / 280.8 MB, free: 9.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.01048, allocations: 29.7 kB / 280.8 MB, free: 9.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.701e-05/0.01051, allocations: 84.08 kB / 280.9 MB, free: 9.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.01052, allocations: 0 / 280.9 MB, free: 9.684 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.01055, allocations: 21.83 kB / 280.9 MB, free: 9.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.564e-05/0.01065, allocations: 314.8 kB / 281.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.358e-06/0.01066, allocations: 7.922 kB / 281.3 MB, free: 9.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.398e-06/0.01066, allocations: 0 / 281.3 MB, free: 9.332 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.358e-05/0.01068, allocations: 8.859 kB / 281.3 MB, free: 9.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01069, allocations: 0 / 281.3 MB, free: 9.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.625e-05/0.01073, allocations: 29.7 kB / 281.3 MB, free: 9.285 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.01075, allocations: 8 kB / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.01075, allocations: 0 / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.01077, allocations: 96 / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.119e-05/0.01079, allocations: 7.938 kB / 281.3 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.01079, allocations: 3.984 kB / 281.3 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.357e-05/0.01081, allocations: 0 / 281.3 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.01081, allocations: 3.938 kB / 281.3 MB, free: 9.262 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.013e-05/0.01087, allocations: 109.8 kB / 281.4 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-06/0.01088, allocations: 0 / 281.4 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.484e-05/0.0109, allocations: 7.156 kB / 281.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.01091, allocations: 0 / 281.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01091, allocations: 3.938 kB / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.01091, allocations: 0 / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.43e-05/0.01099, allocations: 69.89 kB / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.01099, allocations: 0 / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.984e-06/0.01099, allocations: 0 / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.01099, allocations: 0 / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-06/0.01099, allocations: 0 / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.011, allocations: 4 kB / 281.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.011, allocations: 192 / 281.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.251e-05/0.01106, allocations: 65.06 kB / 281.6 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.456e-06/0.01107, allocations: 7.969 kB / 281.6 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.866e-06/0.01108, allocations: 3.938 kB / 281.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-06/0.01109, allocations: 4.031 kB / 281.6 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-06/0.0111, allocations: 4 kB / 281.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-06/0.0111, allocations: 0 / 281.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.823e-05/0.01112, allocations: 16.78 kB / 281.6 MB, free: 8.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01112, allocations: 3.938 kB / 281.6 MB, free: 8.922 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004218/0.01154, allocations: 143.5 kB / 281.7 MB, free: 8.781 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.001237/0.01277, allocations: 0.5755 MB / 282.3 MB, free: 8.316 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.315e-05/0.01284, allocations: 4.859 kB / 282.3 MB, free: 8.309 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.01284, allocations: 4 kB / 282.3 MB, free: 8.305 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.204e-06/0.01285, allocations: 4.859 kB / 282.3 MB, free: 8.297 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.559e-05/0.01292, allocations: 7.984 kB / 282.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005339/0.01346, allocations: 116.8 kB / 282.5 MB, free: 8.148 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.448e-05/0.01349, allocations: 51.36 kB / 282.5 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.175e-05/0.01352, allocations: 11.98 kB / 282.5 MB, free: 8.066 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.01356, allocations: 51.38 kB / 282.6 MB, free: 8.016 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01356, allocations: 0 / 282.6 MB, free: 8.016 MB / 266.7 MB Notification: Performance of Templates: time 0.006785/0.02034, allocations: 3.868 MB / 286.4 MB, free: 4.152 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7828408111818135]