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.0008835/0.0008835, allocations: 84.34 kB / 22.22 MB, free: 2.281 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.0009504/0.0009504, allocations: 167.2 kB / 25.61 MB, free: 8.875 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.935/0.935, allocations: 177 MB / 205.9 MB, free: 4.441 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.553e-06/1.553e-06, allocations: 0 / 274.1 MB, free: 4.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.322e-05/1.477e-05, allocations: 2.312 kB / 274.1 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002061/0.002075, allocations: 1.242 MB / 275.3 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.004981, allocations: 2.162 MB / 277.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.405e-05/0.005005, allocations: 0 / 277.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.005022, allocations: 0 / 277.5 MB, free: 0.9297 MB / 250.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.00137/0.006392, allocations: 478.2 kB / 277.9 MB, free: 472 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.415e-05/0.006416, allocations: 4.5 kB / 277.9 MB, free: 468 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 4.739e-05/0.006464, allocations: 16.56 kB / 278 MB, free: 452 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.694e-05/0.006501, allocations: 0 / 278 MB, free: 452 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.465e-05/0.006535, allocations: 14.39 kB / 278 MB, free: 440 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.388e-05/0.006589, allocations: 7.984 kB / 278 MB, free: 432 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.006599, allocations: 0 / 278 MB, free: 432 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008193/0.007419, allocations: 487.3 kB / 278.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.557e-05/0.007434, allocations: 7.938 kB / 278.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.653e-05/0.007451, allocations: 4 kB / 278.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.008107, allocations: 466.8 kB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.008109, allocations: 1.906 kB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.008109, allocations: 0 / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.008113, allocations: 0 / 278.9 MB, free: 15.48 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.000449/0.008562, allocations: 447.4 kB / 279.4 MB, free: 15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.008596, allocations: 11.97 kB / 279.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.226e-05/0.008658, allocations: 125 kB / 279.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.008787, allocations: 240.4 kB / 279.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.395e-05/0.008861, allocations: 242.7 kB / 280 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.232e-05/0.008934, allocations: 246.8 kB / 280.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.842e-05/0.008992, allocations: 145.5 kB / 280.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.009026, allocations: 119.4 kB / 280.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.009132, allocations: 238.8 kB / 280.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.506e-05/0.009187, allocations: 250.2 kB / 280.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.944e-05/0.009237, allocations: 238.4 kB / 281.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001951/0.009432, allocations: 0.5531 MB / 281.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.24e-05/0.009504, allocations: 261.4 kB / 282 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.009534, allocations: 126.9 kB / 282.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.009558, allocations: 119.2 kB / 282.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.303e-05/0.009631, allocations: 61 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.009633, allocations: 0 / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 9.066e-05/0.009724, allocations: 33.69 kB / 282.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.009749, allocations: 51.41 kB / 282.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.44e-05/0.009813, allocations: 165.9 kB / 282.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.009822, allocations: 33.64 kB / 282.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.066e-05/0.009853, allocations: 126.9 kB / 282.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.009865, allocations: 0 / 282.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.009887, allocations: 23.36 kB / 282.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.889e-05/0.009986, allocations: 496.2 kB / 283.2 MB, free: 11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.157e-06/0.00999, allocations: 4 kB / 283.2 MB, free: 11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.216e-06/0.009993, allocations: 0 / 283.2 MB, free: 11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.723e-05/0.01001, allocations: 11.69 kB / 283.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.01001, allocations: 0 / 283.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.981e-05/0.01005, allocations: 33.66 kB / 283.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.01007, allocations: 8 kB / 283.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.01007, allocations: 3.984 kB / 283.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.524e-06/0.01008, allocations: 0 / 283.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.291e-05/0.01009, allocations: 3.938 kB / 283.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.585e-06/0.01009, allocations: 8.031 kB / 283.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.241e-05/0.01011, allocations: 4 kB / 283.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-06/0.01011, allocations: 0 / 283.3 MB, free: 10.92 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 5.506e-05/0.01016, allocations: 164.5 kB / 283.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-06/0.01017, allocations: 0 / 283.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.961e-05/0.01019, allocations: 7.156 kB / 283.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.01019, allocations: 0 / 283.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.01019, allocations: 0 / 283.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.0102, allocations: 7.922 kB / 283.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.283e-05/0.01026, allocations: 93.27 kB / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.01026, allocations: 4 kB / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.462e-06/0.01026, allocations: 0 / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.02e-07/0.01026, allocations: 0 / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-06/0.01026, allocations: 0 / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.01027, allocations: 0 / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.01027, allocations: 0 / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.757e-05/0.01031, allocations: 76.31 kB / 283.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-06/0.01032, allocations: 0 / 283.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.825e-06/0.01033, allocations: 4 kB / 283.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.091e-06/0.01033, allocations: 4 kB / 283.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-06/0.01034, allocations: 0 / 283.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-06/0.01034, allocations: 4.219 kB / 283.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.465e-05/0.01038, allocations: 131.2 kB / 283.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01038, allocations: 0 / 283.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002717/0.01065, allocations: 143.5 kB / 283.9 MB, free: 10.23 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.0007348/0.01138, allocations: 0.5538 MB / 284.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.94e-05/0.01143, allocations: 19.67 kB / 284.5 MB, free: 9.715 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01143, allocations: 0 / 284.5 MB, free: 9.715 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.296e-06/0.01144, allocations: 7.688 kB / 284.5 MB, free: 9.703 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.01157, allocations: 11.92 kB / 284.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.01185, allocations: 106.7 kB / 284.6 MB, free: 9.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.65e-05/0.01188, allocations: 55.22 kB / 284.6 MB, free: 9.484 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.489e-05/0.0119, allocations: 19.89 kB / 284.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.01195, allocations: 74.2 kB / 284.7 MB, free: 9.391 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01196, allocations: 0 / 284.7 MB, free: 9.391 MB / 266.7 MB Notification: Performance of Templates: time 0.004573/0.01653, allocations: 3.873 MB / 288.6 MB, free: 5.516 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.809218388982117]