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.001857/0.001857, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.001849/0.001849, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 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 1.548/1.548, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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.893e-06/1.893e-06, allocations: 0 / 267.3 MB, free: 6.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.268e-05, allocations: 5.828 kB / 267.3 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003683/0.003715, allocations: 1.203 MB / 268.5 MB, free: 5.574 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005995/0.00971, allocations: 2.045 MB / 270.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.281e-05/0.009733, allocations: 0 / 270.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.776e-05/0.009761, allocations: 3.938 kB / 270.5 MB, free: 3.516 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.002133/0.01189, allocations: 438.4 kB / 271 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.564e-05/0.01194, allocations: 4 kB / 271 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.452e-05/0.01201, allocations: 19.91 kB / 271 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.932e-05/0.01205, allocations: 0 / 271 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.082e-05/0.0121, allocations: 7.938 kB / 271 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.01234, allocations: 4 kB / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.01236, allocations: 0 / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009304/0.01329, allocations: 443.4 kB / 271.4 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.01331, allocations: 7.938 kB / 271.4 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.01333, allocations: 0 / 271.4 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006955/0.01402, allocations: 426.9 kB / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.01403, allocations: 0 / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01403, allocations: 0 / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.01403, allocations: 0 / 271.8 MB, free: 2.191 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.0005381/0.01457, allocations: 439.5 kB / 272.3 MB, free: 1.727 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.01461, allocations: 12.92 kB / 272.3 MB, free: 1.715 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.554e-05/0.0147, allocations: 120.1 kB / 272.4 MB, free: 1.598 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.01491, allocations: 239.8 kB / 272.6 MB, free: 1.336 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.01503, allocations: 238.8 kB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.01514, allocations: 246.8 kB / 273.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.01525, allocations: 149.4 kB / 273.3 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.339e-05/0.01531, allocations: 127.1 kB / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.01544, allocations: 242.4 kB / 273.6 MB, free: 352 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.01555, allocations: 238.4 kB / 273.9 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.0157, allocations: 242.4 kB / 274.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.0161, allocations: 0.5681 MB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.01627, allocations: 265.4 kB / 274.9 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.948e-05/0.01634, allocations: 130.9 kB / 275 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.191e-05/0.0164, allocations: 123.1 kB / 275.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/0.01651, allocations: 53.06 kB / 275.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.943e-06/0.01652, allocations: 0 / 275.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001667/0.01668, allocations: 49.56 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.01673, allocations: 51.41 kB / 275.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.01688, allocations: 161.9 kB / 275.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.0169, allocations: 25.7 kB / 275.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.825e-05/0.01697, allocations: 130.9 kB / 275.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.01699, allocations: 0 / 275.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.01703, allocations: 19.38 kB / 275.6 MB, free: 14.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/0.01729, allocations: 496.1 kB / 276.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.0173, allocations: 0 / 276.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.01731, allocations: 4.125 kB / 276.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.626e-05/0.01733, allocations: 11.75 kB / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.01733, allocations: 0 / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.067e-05/0.0174, allocations: 41.62 kB / 276.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.01742, allocations: 4 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.01742, allocations: 3.938 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.01744, allocations: 0 / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.106e-05/0.01746, allocations: 4 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.01746, allocations: 0 / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.571e-05/0.01748, allocations: 0 / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.01748, allocations: 4.031 kB / 276.2 MB, free: 13.61 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 0.0001199/0.0176, allocations: 156.6 kB / 276.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.01762, allocations: 7.953 kB / 276.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.01765, allocations: 15.03 kB / 276.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01765, allocations: 0 / 276.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.01766, allocations: 0 / 276.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.01766, allocations: 0 / 276.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.01778, allocations: 108.6 kB / 276.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.01778, allocations: 0 / 276.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.01779, allocations: 0 / 276.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01779, allocations: 0 / 276.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.0178, allocations: 12 kB / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.0178, allocations: 7.922 kB / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.0178, allocations: 0 / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.727e-05/0.0179, allocations: 72.33 kB / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.154e-06/0.01791, allocations: 4 kB / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.01792, allocations: 0 / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.42e-05/0.01793, allocations: 3.938 kB / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.877e-05/0.01795, allocations: 7.984 kB / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-06/0.01795, allocations: 0 / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.428e-05/0.01803, allocations: 127.2 kB / 276.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01803, allocations: 4.031 kB / 276.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004238/0.01845, allocations: 131.6 kB / 276.8 MB, free: 12.9 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.001566/0.02002, allocations: 0.5215 MB / 277.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.669e-05/0.02009, allocations: 11.69 kB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.02009, allocations: 0 / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.846e-05/0.02011, allocations: 15.62 kB / 277.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.02025, allocations: 0 / 277.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003072/0.02056, allocations: 114.3 kB / 277.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.97e-05/0.02062, allocations: 59.34 kB / 277.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.354e-05/0.02065, allocations: 12.11 kB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.02068, allocations: 16.48 kB / 277.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.02068, allocations: 0 / 277.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Templates: time 0.007311/0.02799, allocations: 2.847 MB / 280.4 MB, free: 9.328 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.646404845989309]