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.0007956/0.0007956, allocations: 72.08 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.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.004189/0.004189, allocations: 139.6 kB / 24.97 MB, free: 8.781 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.9503/0.9503, allocations: 173.3 MB / 201.5 MB, free: 9.324 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.523e-06/1.523e-06, allocations: 3.938 kB / 268 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.74e-05, allocations: 6.25 kB / 268 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00137/0.001388, allocations: 1.218 MB / 269.3 MB, free: 5.523 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.003317, allocations: 2.06 MB / 271.3 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.997e-05/0.003337, allocations: 0 / 271.3 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.261e-05/0.00335, allocations: 0 / 271.3 MB, free: 3.453 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.0007033/0.004053, allocations: 446.3 kB / 271.7 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.366e-05/0.004067, allocations: 0 / 271.7 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 3.749e-05/0.004104, allocations: 7.938 kB / 271.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.604e-05/0.00413, allocations: 7.984 kB / 271.8 MB, free: 3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.325e-05/0.004154, allocations: 11.94 kB / 271.8 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.469e-05/0.004188, allocations: 0 / 271.8 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-06/0.004195, allocations: 0 / 271.8 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004179/0.004613, allocations: 459.2 kB / 272.2 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-06/0.004621, allocations: 0 / 272.2 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.345e-05/0.004634, allocations: 4 kB / 272.2 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003579/0.004992, allocations: 419 kB / 272.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.004994, allocations: 0 / 272.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004994, allocations: 0 / 272.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.004997, allocations: 0 / 272.6 MB, free: 2.125 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.0003698/0.005367, allocations: 431.5 kB / 273.1 MB, free: 1.668 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.621e-05/0.005393, allocations: 12.92 kB / 273.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.912e-05/0.005442, allocations: 128.5 kB / 273.2 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.005547, allocations: 235.8 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.005596, allocations: 238.8 kB / 273.7 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.005645, allocations: 242.7 kB / 273.9 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.961e-05/0.005694, allocations: 149.4 kB / 274 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.005721, allocations: 131.1 kB / 274.2 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/0.005774, allocations: 242.4 kB / 274.4 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-05/0.005824, allocations: 238.4 kB / 274.6 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.816e-05/0.005882, allocations: 242.4 kB / 274.9 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.006074, allocations: 0.5642 MB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.198e-05/0.006146, allocations: 277.4 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.942e-05/0.006176, allocations: 126.9 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.0062, allocations: 119.2 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.427e-05/0.006264, allocations: 49.06 kB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.006266, allocations: 0 / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 9.006e-05/0.006356, allocations: 45.56 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.006382, allocations: 51.41 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.347e-05/0.006446, allocations: 157.9 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-06/0.006453, allocations: 25.83 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.357e-05/0.006487, allocations: 134.9 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.081e-05/0.006498, allocations: 4 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.006518, allocations: 19.36 kB / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.006616, allocations: 496.1 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.26e-06/0.006621, allocations: 0 / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.885e-06/0.006624, allocations: 0 / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.684e-05/0.006641, allocations: 11.69 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.006642, allocations: 0 / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.01e-05/0.006672, allocations: 41.59 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.006682, allocations: 12.08 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.006688, allocations: 7.938 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.799e-06/0.006698, allocations: 0 / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.144e-05/0.00671, allocations: 0 / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.006713, allocations: 0 / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.528e-06/0.006723, allocations: 0 / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-06/0.006726, allocations: 0 / 277 MB, free: 13.55 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 5.183e-05/0.006778, allocations: 156.6 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.208e-06/0.006782, allocations: 0 / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.052e-05/0.006803, allocations: 7.094 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.006805, allocations: 3.984 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.006808, allocations: 12 kB / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.00681, allocations: 0 / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.175e-05/0.006872, allocations: 112.6 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.006872, allocations: 0 / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.242e-06/0.006874, allocations: 4 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.51e-07/0.006874, allocations: 0 / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-06/0.006878, allocations: 3.938 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.006879, allocations: 3.938 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.00688, allocations: 0 / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.353e-05/0.006923, allocations: 68.62 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-06/0.006928, allocations: 8.016 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.073e-06/0.006935, allocations: 0 / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-06/0.006943, allocations: 11.94 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.109e-05/0.006954, allocations: 3.984 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.92e-07/0.006955, allocations: 0 / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.128e-05/0.006986, allocations: 123.2 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006986, allocations: 0 / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002449/0.007231, allocations: 131.6 kB / 277.6 MB, free: 12.85 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.0007226/0.007954, allocations: 0.537 MB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.68e-05/0.008001, allocations: 15.61 kB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.008003, allocations: 4 kB / 278.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.322e-06/0.008009, allocations: 11.75 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.66e-05/0.008096, allocations: 7.984 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.008397, allocations: 118.3 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.195e-05/0.008419, allocations: 51.36 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.007e-05/0.008439, allocations: 15.92 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.466e-05/0.008454, allocations: 16.44 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of SimCode: time 4.5e-07/0.008454, allocations: 8.062 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of Templates: time 0.003671/0.01213, allocations: 2.834 MB / 281.2 MB, free: 9.262 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.8310721120797098]