Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 79.75 kB / 22.45 MB, free: 2.09 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 168 kB / 25.75 MB, free: 8.961 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.05/1.05, allocations: 158.6 MB / 187.5 MB, free: 2.512 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.533e-05/3.719e-05, allocations: 9.969 kB / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002452/0.002489, allocations: 1.217 MB / 252.3 MB, free: 6.57 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003019/0.005508, allocations: 2.101 MB / 254.4 MB, free: 4.457 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.375e-05/0.005542, allocations: 0 / 254.4 MB, free: 4.457 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.043e-05/0.005562, allocations: 0 / 254.4 MB, free: 4.457 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001255/0.006817, allocations: 446.3 kB / 254.8 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.473e-05/0.006842, allocations: 7.984 kB / 254.8 MB, free: 4.012 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 5.311e-05/0.006895, allocations: 7.938 kB / 254.8 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.894e-05/0.006934, allocations: 4 kB / 254.8 MB, free: 4 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.505e-05/0.006969, allocations: 7.922 kB / 254.9 MB, free: 3.992 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.44e-05/0.007023, allocations: 4 kB / 254.9 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.007036, allocations: 0 / 254.9 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007225/0.007759, allocations: 451.3 kB / 255.3 MB, free: 3.547 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.007774, allocations: 3.984 kB / 255.3 MB, free: 3.543 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.0078, allocations: 4 kB / 255.3 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005993/0.0084, allocations: 418.9 kB / 255.7 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.008403, allocations: 0 / 255.7 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.008404, allocations: 4 kB / 255.7 MB, free: 3.125 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.008409, allocations: 0 / 255.7 MB, free: 3.125 MB / 234.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.0004806/0.00889, allocations: 435.8 kB / 256.1 MB, free: 2.664 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.008935, allocations: 11.98 kB / 256.2 MB, free: 2.652 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.025e-05/0.009016, allocations: 124.1 kB / 256.3 MB, free: 2.531 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.009176, allocations: 235.8 kB / 256.5 MB, free: 2.273 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.596e-05/0.009252, allocations: 242.7 kB / 256.7 MB, free: 2.035 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-05/0.009319, allocations: 238.8 kB / 257 MB, free: 1.801 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.985e-05/0.009399, allocations: 145.5 kB / 257.1 MB, free: 1.652 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.095e-05/0.00944, allocations: 123.1 kB / 257.2 MB, free: 1.531 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.009525, allocations: 246.4 kB / 257.5 MB, free: 1.289 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.606e-05/0.009601, allocations: 238.4 kB / 257.7 MB, free: 1.055 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.00985, allocations: 242.4 kB / 257.9 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003109/0.01016, allocations: 0.5719 MB / 258.5 MB, free: 216 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.0103, allocations: 265.5 kB / 258.8 MB, free: 15.94 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.37e-05/0.01036, allocations: 134.9 kB / 258.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.0104, allocations: 119.2 kB / 259 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001228/0.01052, allocations: 49.06 kB / 259.1 MB, free: 15.62 MB / 250.7 MB Notification: Performance of pre-optimization done (n=1): time 2.375e-06/0.01052, allocations: 3.938 kB / 259.1 MB, free: 15.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001561/0.01068, allocations: 37.73 kB / 259.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.01072, allocations: 55.41 kB / 259.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.01083, allocations: 161.9 kB / 259.3 MB, free: 15.33 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.01084, allocations: 25.7 kB / 259.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.01089, allocations: 130.9 kB / 259.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.01091, allocations: 7.938 kB / 259.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.01094, allocations: 19.38 kB / 259.5 MB, free: 15.13 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.01108, allocations: 492.1 kB / 260 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.01109, allocations: 7.984 kB / 260 MB, free: 14.63 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.0111, allocations: 0 / 260 MB, free: 14.63 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.755e-05/0.01113, allocations: 19.72 kB / 260 MB, free: 14.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01113, allocations: 0 / 260 MB, free: 14.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.165e-05/0.01119, allocations: 33.7 kB / 260 MB, free: 14.57 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.01121, allocations: 4 kB / 260.1 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.01122, allocations: 7.938 kB / 260.1 MB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.01123, allocations: 7.938 kB / 260.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.538e-05/0.01126, allocations: 0 / 260.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.01127, allocations: 0 / 260.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.923e-05/0.01129, allocations: 0 / 260.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.01129, allocations: 0 / 260.1 MB, free: 14.55 MB / 250.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 9.243e-05/0.01138, allocations: 164.6 kB / 260.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-06/0.01139, allocations: 0 / 260.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.01143, allocations: 7.094 kB / 260.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01143, allocations: 0 / 260.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.738e-06/0.01143, allocations: 3.938 kB / 260.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.01144, allocations: 4.188 kB / 260.2 MB, free: 14.36 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.814e-05/0.01153, allocations: 112.6 kB / 260.4 MB, free: 14.22 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.01154, allocations: 3.984 kB / 260.4 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-06/0.01154, allocations: 4 kB / 260.4 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01155, allocations: 0 / 260.4 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-06/0.01155, allocations: 0 / 260.4 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.01155, allocations: 7.938 kB / 260.4 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01155, allocations: 0 / 260.4 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.893e-05/0.01162, allocations: 68.44 kB / 260.4 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-06/0.01163, allocations: 0 / 260.4 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.01164, allocations: 0 / 260.4 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.294e-05/0.01165, allocations: 7.938 kB / 260.4 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.225e-05/0.01167, allocations: 4 kB / 260.4 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.01167, allocations: 0 / 260.4 MB, free: 14.1 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.778e-05/0.01172, allocations: 127.2 kB / 260.6 MB, free: 13.98 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01172, allocations: 0 / 260.6 MB, free: 13.98 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004359/0.01215, allocations: 143.5 kB / 260.7 MB, free: 13.84 MB / 250.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.001084/0.01324, allocations: 0.5124 MB / 261.2 MB, free: 13.37 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.092e-05/0.01332, allocations: 11.69 kB / 261.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.01332, allocations: 0 / 261.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.676e-06/0.01333, allocations: 7.688 kB / 261.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.01349, allocations: 11.89 kB / 261.3 MB, free: 13.33 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005336/0.01402, allocations: 121.6 kB / 261.4 MB, free: 13.19 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.349e-05/0.01407, allocations: 55.34 kB / 261.4 MB, free: 13.11 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.27e-05/0.0141, allocations: 11.98 kB / 261.4 MB, free: 13.1 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.812e-05/0.01413, allocations: 12.5 kB / 261.5 MB, free: 13.09 MB / 250.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01413, allocations: 0 / 261.5 MB, free: 13.09 MB / 250.7 MB Notification: Performance of Templates: time 0.006423/0.02055, allocations: 2.843 MB / 264.3 MB, free: 10.25 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.778006751090288]