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.0009892/0.0009892, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.001064/0.001064, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9915/0.9915, allocations: 173.4 MB / 201.1 MB, free: 9.328 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.333e-06/1.333e-06, allocations: 0 / 267.9 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.573e-05/2.706e-05, allocations: 10.19 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001818/0.001845, allocations: 1.218 MB / 269.2 MB, free: 5.234 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.004161, allocations: 2.064 MB / 271.2 MB, free: 3.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.783e-05/0.004189, allocations: 0 / 271.2 MB, free: 3.16 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.344e-05/0.004212, allocations: 0 / 271.2 MB, free: 3.16 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.001368/0.00558, allocations: 450.3 kB / 271.7 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.745e-05/0.005608, allocations: 4 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 5.198e-05/0.00566, allocations: 7.938 kB / 271.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.109e-05/0.005701, allocations: 4 kB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.378e-05/0.005734, allocations: 7.922 kB / 271.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.634e-05/0.005791, allocations: 4 kB / 271.7 MB, free: 2.691 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.005802, allocations: 0 / 271.7 MB, free: 2.691 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006809/0.006483, allocations: 455.2 kB / 272.2 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.006498, allocations: 3.984 kB / 272.2 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.00652, allocations: 4 kB / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.007031, allocations: 415 kB / 272.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.007034, allocations: 0 / 272.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.007036, allocations: 4 kB / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.007041, allocations: 0 / 272.6 MB, free: 1.828 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.003434/0.01048, allocations: 431.5 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.01052, allocations: 8.922 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/0.01059, allocations: 124.5 kB / 273.1 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.01073, allocations: 239.8 kB / 273.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.069e-05/0.01079, allocations: 238.8 kB / 273.6 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.519e-05/0.01084, allocations: 238.8 kB / 273.8 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.299e-05/0.0109, allocations: 153.3 kB / 274 MB, free: 364 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/0.01094, allocations: 127.1 kB / 274.1 MB, free: 236 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-05/0.01102, allocations: 246.4 kB / 274.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.848e-05/0.01108, allocations: 238.4 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.43e-05/0.01113, allocations: 238.4 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002566/0.01139, allocations: 0.5759 MB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.01162, allocations: 269.4 kB / 275.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.741e-05/0.01166, allocations: 126.9 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.01169, allocations: 123.2 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.0118, allocations: 49.06 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.555e-06/0.0118, allocations: 0 / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.00015/0.01195, allocations: 49.56 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.01199, allocations: 51.41 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.569e-05/0.01208, allocations: 161.9 kB / 276.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.138e-06/0.01208, allocations: 25.7 kB / 276.2 MB, free: 14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.373e-05/0.01213, allocations: 130.9 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.01215, allocations: 0 / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.01217, allocations: 19.38 kB / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.01229, allocations: 0.4884 MB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.284e-05/0.01231, allocations: 0 / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.01231, allocations: 0 / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.615e-05/0.01234, allocations: 15.88 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01234, allocations: 0 / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.051e-05/0.0124, allocations: 41.59 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.01242, allocations: 8 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.01242, allocations: 3.938 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.01244, allocations: 0 / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.601e-05/0.01247, allocations: 0 / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.01247, allocations: 0 / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.902e-05/0.01249, allocations: 0 / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.0125, allocations: 3.984 kB / 276.9 MB, free: 13.25 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 7.284e-05/0.01257, allocations: 160.6 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-06/0.01258, allocations: 0 / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.827e-05/0.01262, allocations: 7.094 kB / 277.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.01262, allocations: 4 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.01263, allocations: 4 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.01263, allocations: 3.938 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.098e-05/0.01272, allocations: 112.6 kB / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.01272, allocations: 4 kB / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-06/0.01272, allocations: 0 / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.01273, allocations: 0 / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.01273, allocations: 0 / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.01273, allocations: 11.88 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01274, allocations: 0 / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.671e-05/0.0128, allocations: 68.44 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-06/0.01281, allocations: 0 / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.01282, allocations: 0 / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.128e-06/0.01283, allocations: 7.938 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/0.01284, allocations: 0 / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.01285, allocations: 4 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.185e-05/0.01289, allocations: 127.2 kB / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01289, allocations: 0 / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003459/0.01635, allocations: 131.6 kB / 277.6 MB, free: 12.55 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.001065/0.01741, allocations: 0.5355 MB / 278.1 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.59e-05/0.0175, allocations: 15.62 kB / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.0175, allocations: 0 / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.576e-06/0.01751, allocations: 7.688 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.01766, allocations: 7.984 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004786/0.01814, allocations: 122.2 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.783e-05/0.01818, allocations: 51.48 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.139e-05/0.01821, allocations: 27.86 kB / 278.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.255e-05/0.01823, allocations: 12.5 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01823, allocations: 0 / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Templates: time 0.012/0.03023, allocations: 2.836 MB / 281.2 MB, free: 8.965 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: 3.115986207034439]