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.0008795/0.0008795, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001042/0.001042, allocations: 164.4 kB / 24.91 MB, free: 8.77 MB / 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.9486/0.9486, allocations: 177 MB / 205.2 MB, free: 5.461 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.683e-06/1.683e-06, allocations: 0 / 273.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.277e-05/1.446e-05, allocations: 2.312 kB / 273.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001396/0.001411, allocations: 1.246 MB / 274.6 MB, free: 16 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.00343, allocations: 2.18 MB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.835e-05/0.003449, allocations: 0 / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.003463, allocations: 3.938 kB / 276.8 MB, free: 13.82 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.0008046/0.004268, allocations: 482.2 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.712e-05/0.004285, allocations: 4 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 3.656e-05/0.004322, allocations: 15.91 kB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.901e-05/0.004351, allocations: 0 / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.786e-05/0.004378, allocations: 4 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.311e-05/0.004422, allocations: 7.938 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.00443, allocations: 0 / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005116/0.004942, allocations: 495.2 kB / 277.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.004955, allocations: 3.984 kB / 277.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.39e-05/0.004968, allocations: 7.938 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.005382, allocations: 470.9 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.005384, allocations: 0 / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.005384, allocations: 0 / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.966e-06/0.005387, allocations: 0 / 278.2 MB, free: 12.36 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.0002662/0.005653, allocations: 328 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.632e-05/0.00568, allocations: 11.98 kB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.005713, allocations: 80.22 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.468e-05/0.005788, allocations: 177.1 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.668e-05/0.005825, allocations: 162.8 kB / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.005856, allocations: 150.9 kB / 279.1 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.916e-05/0.005895, allocations: 105.5 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.005912, allocations: 79.47 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.005947, allocations: 158.9 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.005978, allocations: 154.5 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.831e-05/0.006007, allocations: 150.6 kB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.006132, allocations: 357.2 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.556e-05/0.006187, allocations: 173.1 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.895e-05/0.006206, allocations: 80.14 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.006221, allocations: 79.28 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.02e-05/0.006282, allocations: 51.39 kB / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.006283, allocations: 0 / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 6.609e-05/0.006349, allocations: 37.64 kB / 280.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.006375, allocations: 51.41 kB / 280.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.979e-05/0.006425, allocations: 110.6 kB / 280.7 MB, free: 9.781 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-06/0.006432, allocations: 25.7 kB / 280.7 MB, free: 9.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.701e-05/0.006449, allocations: 80.14 kB / 280.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.006461, allocations: 3.984 kB / 280.8 MB, free: 9.664 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.892e-05/0.00648, allocations: 13.72 kB / 280.8 MB, free: 9.645 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.505e-05/0.006545, allocations: 310.8 kB / 281.1 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.565e-06/0.006548, allocations: 0 / 281.1 MB, free: 9.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.628e-06/0.006552, allocations: 8.109 kB / 281.1 MB, free: 9.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.554e-05/0.006568, allocations: 12.86 kB / 281.1 MB, free: 9.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.006569, allocations: 0 / 281.1 MB, free: 9.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.74e-05/0.006597, allocations: 33.7 kB / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.006606, allocations: 6.969 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.006609, allocations: 0 / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/0.006617, allocations: 0 / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.757e-05/0.006635, allocations: 4 kB / 281.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-06/0.006638, allocations: 0 / 281.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.084e-05/0.006648, allocations: 7.922 kB / 281.2 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-06/0.006652, allocations: 8.031 kB / 281.2 MB, free: 9.246 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.422e-05/0.006696, allocations: 109.8 kB / 281.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.046e-06/0.0067, allocations: 0 / 281.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.739e-05/0.006717, allocations: 7.156 kB / 281.3 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-07/0.006718, allocations: 3.938 kB / 281.3 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.006719, allocations: 0 / 281.3 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.006722, allocations: 3.938 kB / 281.3 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.298e-05/0.006785, allocations: 73.81 kB / 281.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.006786, allocations: 0 / 281.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.903e-06/0.006787, allocations: 0 / 281.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-07/0.006788, allocations: 0 / 281.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-06/0.006791, allocations: 4 kB / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.21e-07/0.006791, allocations: 0 / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4e-07/0.006791, allocations: 0 / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.509e-05/0.006827, allocations: 61.06 kB / 281.4 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-06/0.00683, allocations: 0 / 281.4 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.931e-06/0.006836, allocations: 4 kB / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.019e-06/0.006841, allocations: 0 / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.414e-06/0.006849, allocations: 0 / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-06/0.00685, allocations: 0 / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.241e-05/0.006862, allocations: 16.84 kB / 281.5 MB, free: 8.922 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006862, allocations: 4.031 kB / 281.5 MB, free: 8.918 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002245/0.007087, allocations: 143.5 kB / 281.6 MB, free: 8.777 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.0007985/0.007885, allocations: 0.5719 MB / 282.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 3.867e-05/0.007924, allocations: 12.8 kB / 282.2 MB, free: 8.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.007927, allocations: 8 kB / 282.2 MB, free: 8.258 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.346e-06/0.00793, allocations: 4.859 kB / 282.2 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.819e-05/0.007978, allocations: 4 kB / 282.2 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002736/0.008252, allocations: 112.6 kB / 282.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.212e-05/0.008274, allocations: 51.36 kB / 282.4 MB, free: 8.039 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.352e-05/0.008298, allocations: 20.11 kB / 282.4 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.008323, allocations: 51.38 kB / 282.4 MB, free: 7.969 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.008324, allocations: 0 / 282.4 MB, free: 7.969 MB / 266.7 MB Notification: Performance of Templates: time 0.004499/0.01282, allocations: 3.865 MB / 286.3 MB, free: 4.105 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.745259922929108]