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.0009307/0.0009307, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.001031/0.001031, allocations: 146.6 kB / 24.89 MB, free: 9.211 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.9603/0.9603, allocations: 173.4 MB / 201.5 MB, free: 9.168 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.313e-06/1.313e-06, allocations: 0 / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23e-05/1.362e-05, allocations: 2.312 kB / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001371/0.001385, allocations: 1.228 MB / 269.6 MB, free: 4.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.003405, allocations: 2.076 MB / 271.7 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.268e-05/0.003427, allocations: 4 kB / 271.7 MB, free: 2.887 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.564e-05/0.003443, allocations: 0 / 271.7 MB, free: 2.887 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.0007977/0.004241, allocations: 454.2 kB / 272.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.597e-05/0.004257, allocations: 0 / 272.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 3.833e-05/0.004295, allocations: 7.938 kB / 272.2 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.148e-05/0.004327, allocations: 4 kB / 272.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.893e-05/0.004356, allocations: 3.984 kB / 272.2 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.2e-05/0.004398, allocations: 7.125 kB / 272.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-06/0.004407, allocations: 0 / 272.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004705/0.004877, allocations: 459.2 kB / 272.6 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.027e-05/0.004888, allocations: 4 kB / 272.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.187e-05/0.004899, allocations: 0 / 272.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.005254, allocations: 422.9 kB / 273.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.005256, allocations: 0 / 273.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.6e-07/0.005256, allocations: 0 / 273.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.525e-06/0.005259, allocations: 0 / 273.1 MB, free: 1.555 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.0002727/0.005531, allocations: 307.8 kB / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.005563, allocations: 8.922 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.005599, allocations: 80.22 kB / 273.4 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.769e-05/0.005687, allocations: 189.4 kB / 273.6 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.005723, allocations: 150.9 kB / 273.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.005755, allocations: 154.9 kB / 273.9 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.503e-05/0.0058, allocations: 109.5 kB / 274 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.00582, allocations: 83.16 kB / 274.1 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.005854, allocations: 150.6 kB / 274.3 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.293e-05/0.005887, allocations: 150.6 kB / 274.4 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.124e-05/0.005928, allocations: 154.5 kB / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.006061, allocations: 361.3 kB / 274.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.457e-05/0.006115, allocations: 169.1 kB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.017e-05/0.006135, allocations: 84.08 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.006151, allocations: 75.28 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.294e-05/0.006213, allocations: 47.42 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.572e-06/0.006215, allocations: 0 / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 7.389e-05/0.006289, allocations: 37.62 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.006318, allocations: 59.34 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.832e-05/0.006366, allocations: 102.7 kB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.006375, allocations: 25.7 kB / 275.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.144e-05/0.006397, allocations: 84.12 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.146e-05/0.006408, allocations: 4 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.592e-05/0.006424, allocations: 9.719 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.006487, allocations: 315 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.009e-06/0.006492, allocations: 4 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.437e-06/0.006495, allocations: 0 / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.658e-05/0.006512, allocations: 8.859 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.006513, allocations: 0 / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.899e-05/0.006542, allocations: 41.56 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/0.006551, allocations: 4 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.006554, allocations: 0 / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.006563, allocations: 0 / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.7e-05/0.00658, allocations: 4.031 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-06/0.006582, allocations: 8 kB / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.636e-06/0.00659, allocations: 0 / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-06/0.006594, allocations: 0 / 276 MB, free: 14.47 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 4.769e-05/0.006642, allocations: 109.8 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-06/0.006648, allocations: 7.984 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.902e-05/0.006667, allocations: 3.156 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.006668, allocations: 0 / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.006672, allocations: 7.938 kB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.006674, allocations: 0 / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.259e-05/0.006727, allocations: 65.89 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.006727, allocations: 4 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.006729, allocations: 3.984 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.61e-07/0.00673, allocations: 0 / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-06/0.006734, allocations: 4 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.006734, allocations: 0 / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.41e-07/0.006735, allocations: 0 / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.465e-05/0.00677, allocations: 57.06 kB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.775e-06/0.006777, allocations: 11.98 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.162e-06/0.006783, allocations: 0 / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.94e-06/0.006788, allocations: 0 / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.144e-06/0.006796, allocations: 32 / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.62e-07/0.006796, allocations: 4 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.078e-05/0.006807, allocations: 16.8 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006807, allocations: 0 / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002015/0.007009, allocations: 131.5 kB / 276.4 MB, free: 14 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.0007567/0.007765, allocations: 0.5688 MB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 3.901e-05/0.007804, allocations: 8.859 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.007807, allocations: 4 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.6e-06/0.007813, allocations: 12.8 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.869e-05/0.007862, allocations: 11.91 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002722/0.008134, allocations: 108.9 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.215e-05/0.008156, allocations: 51.36 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.838e-05/0.008174, allocations: 11.98 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.418e-05/0.008199, allocations: 51.38 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.008199, allocations: 0 / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of Templates: time 0.004112/0.01231, allocations: 3.443 MB / 280.7 MB, free: 9.797 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.792018914129585]