Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001533/0.001533, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.002029/0.002029, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.846e-05, allocations: 2.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001772/0.00179, allocations: 1.237 MB / 274.6 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.003897, allocations: 2.15 MB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.239e-05/0.00392, allocations: 4 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.003935, allocations: 0 / 276.7 MB, free: 13.91 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0008307/0.004766, allocations: 490.1 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.695e-05/0.004783, allocations: 0 / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 3.556e-05/0.004819, allocations: 7.938 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.923e-05/0.004848, allocations: 4 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.749e-05/0.004875, allocations: 4 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.724e-05/0.004923, allocations: 15.95 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.847e-06/0.004932, allocations: 4 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.005471, allocations: 495.2 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.005482, allocations: 4 kB / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.284e-05/0.005495, allocations: 0 / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.005908, allocations: 474.8 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.00591, allocations: 0 / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.005911, allocations: 0 / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.005915, allocations: 0 / 278.2 MB, free: 12.44 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.0002952/0.00621, allocations: 447.7 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.006243, allocations: 12.03 kB / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.461e-05/0.006287, allocations: 124.1 kB / 278.8 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.463e-05/0.006382, allocations: 239.8 kB / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.156e-05/0.006434, allocations: 246.7 kB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.006483, allocations: 238.8 kB / 279.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.425e-05/0.006537, allocations: 149.5 kB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.006566, allocations: 123.1 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.541e-05/0.006631, allocations: 238.4 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.153e-05/0.006683, allocations: 238.4 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.915e-05/0.006742, allocations: 242.4 kB / 280.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002233/0.006965, allocations: 0.553 MB / 281 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.007466, allocations: 269.4 kB / 281.3 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.789e-05/0.007513, allocations: 126.9 kB / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.007552, allocations: 127.2 kB / 281.5 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.425e-05/0.007646, allocations: 45.08 kB / 281.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 2.234e-06/0.007648, allocations: 0 / 281.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001297/0.007778, allocations: 45.56 kB / 281.6 MB, free: 8.895 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.007816, allocations: 51.41 kB / 281.7 MB, free: 8.832 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.717e-05/0.007913, allocations: 161.9 kB / 281.8 MB, free: 8.656 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.007927, allocations: 25.7 kB / 281.8 MB, free: 8.625 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.007972, allocations: 134.9 kB / 282 MB, free: 8.488 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.456e-05/0.007997, allocations: 7.953 kB / 282 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.008026, allocations: 19.5 kB / 282 MB, free: 8.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.008171, allocations: 496.1 kB / 282.5 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.933e-06/0.008178, allocations: 0 / 282.5 MB, free: 7.957 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.646e-06/0.008187, allocations: 0 / 282.5 MB, free: 7.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.322e-05/0.00822, allocations: 15.62 kB / 282.5 MB, free: 7.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.008223, allocations: 0 / 282.5 MB, free: 7.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.68e-05/0.008279, allocations: 33.69 kB / 282.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.008293, allocations: 4 kB / 282.5 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.0083, allocations: 4 kB / 282.5 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.008313, allocations: 4.031 kB / 282.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.075e-05/0.008343, allocations: 4 kB / 282.6 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.008348, allocations: 0 / 282.6 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.213e-05/0.00836, allocations: 0 / 282.6 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.008367, allocations: 0 / 282.6 MB, free: 7.883 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 8.701e-05/0.008454, allocations: 156.6 kB / 282.7 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-06/0.008463, allocations: 0 / 282.7 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.389e-05/0.008497, allocations: 7.156 kB / 282.7 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.0085, allocations: 3.938 kB / 282.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.008504, allocations: 7.984 kB / 282.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.008507, allocations: 0 / 282.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.198e-05/0.008599, allocations: 101.2 kB / 282.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.0086, allocations: 0 / 282.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.616e-06/0.008603, allocations: 4 kB / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.008605, allocations: 0 / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-06/0.00861, allocations: 0 / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.00861, allocations: 0 / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.008613, allocations: 4 kB / 282.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.702e-05/0.00869, allocations: 72.38 kB / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.008697, allocations: 0 / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.168e-06/0.008706, allocations: 0 / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-06/0.008712, allocations: 0 / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.008726, allocations: 8.219 kB / 282.9 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.008731, allocations: 7.875 kB / 282.9 MB, free: 7.461 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.633e-05/0.008788, allocations: 135.2 kB / 283 MB, free: 7.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008788, allocations: 0 / 283 MB, free: 7.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003974/0.009185, allocations: 143.5 kB / 283.2 MB, free: 7.188 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.00105/0.01023, allocations: 0.5488 MB / 283.7 MB, free: 6.715 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.74e-05/0.01029, allocations: 15.67 kB / 283.8 MB, free: 6.695 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01029, allocations: 0 / 283.8 MB, free: 6.695 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.476e-06/0.0103, allocations: 11.69 kB / 283.8 MB, free: 6.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.01043, allocations: 4 kB / 283.8 MB, free: 6.676 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.01081, allocations: 118.4 kB / 283.9 MB, free: 6.531 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.059e-05/0.01084, allocations: 55.3 kB / 283.9 MB, free: 6.457 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.283e-05/0.01087, allocations: 11.98 kB / 283.9 MB, free: 6.445 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.01091, allocations: 70.2 kB / 284 MB, free: 6.375 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01091, allocations: 0 / 284 MB, free: 6.375 MB / 266.7 MB Notification: Performance of Templates: time 0.006454/0.01736, allocations: 3.882 MB / 287.9 MB, free: 2.492 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8938259948045015]