Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001216, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009078/0.0009078, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9545/0.9545, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.575e-05, allocations: 2.312 kB / 272.9 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001857/0.001882, allocations: 1.247 MB / 274.1 MB, free: 252 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.004231, allocations: 2.173 MB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.851e-05/0.00426, allocations: 0 / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.512e-05/0.004285, allocations: 0 / 276.3 MB, free: 14.06 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001455/0.00574, allocations: 486.2 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.887e-05/0.005769, allocations: 0 / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.405e-05/0.005823, allocations: 15.92 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.295e-05/0.005856, allocations: 3.984 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.607e-05/0.005892, allocations: 7.938 kB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.056e-05/0.005973, allocations: 4 kB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.005985, allocations: 0 / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008599/0.006845, allocations: 499.2 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.552e-05/0.00686, allocations: 0 / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.836e-05/0.006889, allocations: 11.98 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006856/0.007574, allocations: 466.8 kB / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.007578, allocations: 0 / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.007579, allocations: 0 / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.007583, allocations: 0 / 277.7 MB, free: 12.6 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.0004801/0.008063, allocations: 447.7 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.008105, allocations: 15.98 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.008181, allocations: 120.1 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.00833, allocations: 235.8 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.219e-05/0.008402, allocations: 238.8 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.737e-05/0.00847, allocations: 242.8 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.414e-05/0.008544, allocations: 153.4 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003308/0.008875, allocations: 119.4 kB / 279.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.868e-05/0.008953, allocations: 238.8 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.349e-05/0.009027, allocations: 242.3 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.711e-05/0.009104, allocations: 246.4 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003187/0.009423, allocations: 0.5681 MB / 280.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.00953, allocations: 265.4 kB / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.303e-05/0.009573, allocations: 130.9 kB / 280.9 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.009606, allocations: 123.2 kB / 281.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.513e-05/0.009701, allocations: 53.06 kB / 281.1 MB, free: 9.078 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.009703, allocations: 0 / 281.1 MB, free: 9.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001445/0.009848, allocations: 33.64 kB / 281.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.009891, allocations: 55.34 kB / 281.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.009998, allocations: 165.9 kB / 281.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.01001, allocations: 25.7 kB / 281.4 MB, free: 8.762 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/0.01007, allocations: 126.9 kB / 281.5 MB, free: 8.633 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.01009, allocations: 3.953 kB / 281.5 MB, free: 8.629 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.195e-05/0.01012, allocations: 23.38 kB / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.01024, allocations: 496.1 kB / 282 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-06/0.01025, allocations: 128 / 282 MB, free: 8.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.274e-06/0.01026, allocations: 8 kB / 282 MB, free: 8.094 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.217e-05/0.01028, allocations: 11.62 kB / 282 MB, free: 8.078 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.01028, allocations: 0 / 282 MB, free: 8.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.962e-05/0.01033, allocations: 41.64 kB / 282.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.01034, allocations: 6.812 kB / 282.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.01035, allocations: 0 / 282.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.01036, allocations: 0 / 282.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.499e-05/0.01038, allocations: 3.938 kB / 282.1 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.01039, allocations: 4 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.468e-05/0.0104, allocations: 8.078 kB / 282.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.01041, allocations: 0 / 282.1 MB, free: 8.012 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.742e-05/0.01048, allocations: 152.8 kB / 282.3 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-06/0.01048, allocations: 7.984 kB / 282.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.01051, allocations: 3.156 kB / 282.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.01051, allocations: 0 / 282.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.01052, allocations: 7.938 kB / 282.3 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.01052, allocations: 0 / 282.3 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.246e-05/0.0106, allocations: 120.6 kB / 282.4 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.01061, allocations: 0 / 282.4 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.01061, allocations: 4 kB / 282.4 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.01061, allocations: 0 / 282.4 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.01061, allocations: 0 / 282.4 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.01062, allocations: 7.938 kB / 282.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01062, allocations: 0 / 282.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.818e-05/0.01067, allocations: 72.38 kB / 282.5 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-06/0.01068, allocations: 0 / 282.5 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.415e-06/0.01069, allocations: 0 / 282.5 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.562e-06/0.01069, allocations: 4 kB / 282.5 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.352e-05/0.01071, allocations: 3.938 kB / 282.5 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.01071, allocations: 4 kB / 282.5 MB, free: 7.566 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.642e-05/0.01075, allocations: 131.2 kB / 282.6 MB, free: 7.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01075, allocations: 0 / 282.6 MB, free: 7.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003093/0.01106, allocations: 151.5 kB / 282.8 MB, free: 7.289 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.000825/0.01188, allocations: 0.5368 MB / 283.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.817e-05/0.01195, allocations: 19.61 kB / 283.3 MB, free: 6.781 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01195, allocations: 0 / 283.3 MB, free: 6.781 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.614e-06/0.01196, allocations: 11.69 kB / 283.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001107/0.01207, allocations: 4.141 kB / 283.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004132/0.01248, allocations: 114.3 kB / 283.4 MB, free: 6.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.411e-05/0.01252, allocations: 59.48 kB / 283.5 MB, free: 6.547 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.702e-05/0.01254, allocations: 11.92 kB / 283.5 MB, free: 6.535 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.934e-05/0.01256, allocations: 12.5 kB / 283.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01256, allocations: 0 / 283.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of Templates: time 0.005788/0.01835, allocations: 3.854 MB / 287.4 MB, free: 2.664 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8659642529673874]