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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001036, allocations: 102.2 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 190.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.7 MB / 246.4 MB, free: 9.816 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002085/0.0002086, allocations: 7.984 kB / 307.1 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09064/0.09087, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001148/0.09206, allocations: 0.9238 MB / 359.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.09461, allocations: 1.925 MB / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.807e-05/0.09464, allocations: 0 / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.09466, allocations: 0 / 361.5 MB, free: 10.58 MB / 302.1 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.0008381/0.09551, allocations: 347.1 kB / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.922e-05/0.09554, allocations: 4 kB / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 3.646e-05/0.09558, allocations: 11.92 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.324e-05/0.09562, allocations: 0 / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.134e-05/0.09565, allocations: 8 kB / 361.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.654e-05/0.09575, allocations: 11.98 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.854e-06/0.09577, allocations: 0 / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006227/0.09639, allocations: 435.5 kB / 362.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.128e-05/0.09642, allocations: 7.984 kB / 362.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.09644, allocations: 25.7 kB / 362.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.09678, allocations: 247.6 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.09679, allocations: 0 / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.0968, allocations: 0 / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.09681, allocations: 0 / 362.5 MB, free: 9.5 MB / 302.1 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.0004323/0.09724, allocations: 427.4 kB / 363 MB, free: 9.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.09728, allocations: 12.03 kB / 363 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.71e-05/0.09735, allocations: 79.28 kB / 363 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.09751, allocations: 242.3 kB / 363.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.09756, allocations: 150.6 kB / 363.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.09762, allocations: 158.4 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.01e-05/0.09768, allocations: 108.9 kB / 363.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.09771, allocations: 79.28 kB / 363.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.09777, allocations: 154.6 kB / 363.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.775e-05/0.09782, allocations: 150.6 kB / 364.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.383e-05/0.09788, allocations: 154.5 kB / 364.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002545/0.09814, allocations: 445.9 kB / 364.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.645e-05/0.09822, allocations: 177.1 kB / 364.8 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.412e-05/0.09826, allocations: 80.14 kB / 364.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.09829, allocations: 75.28 kB / 365 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/0.0984, allocations: 47.41 kB / 365 MB, free: 6.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.794e-06/0.09841, allocations: 4 kB / 365 MB, free: 6.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001191/0.09853, allocations: 41.59 kB / 365.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.09858, allocations: 55.41 kB / 365.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.09865, allocations: 101.8 kB / 365.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.09867, allocations: 25.7 kB / 365.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.827e-05/0.09871, allocations: 80.14 kB / 365.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.291e-05/0.09873, allocations: 7.906 kB / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.493e-06/0.09874, allocations: 0 / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.78e-05/0.09884, allocations: 315 kB / 365.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.292e-06/0.09886, allocations: 0 / 365.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.09887, allocations: 7.984 kB / 365.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.333e-05/0.09889, allocations: 4 kB / 365.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.09889, allocations: 0 / 365.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.898e-05/0.09895, allocations: 33.64 kB / 365.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.09896, allocations: 4 kB / 365.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.09897, allocations: 0 / 365.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.09899, allocations: 7.953 kB / 365.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.631e-05/0.09901, allocations: 8.031 kB / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.09902, allocations: 0 / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.09904, allocations: 0 / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-06/0.09905, allocations: 0 / 365.7 MB, free: 6.102 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.059e-05/0.09913, allocations: 113.8 kB / 365.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-06/0.09915, allocations: 0 / 365.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.539e-05/0.09918, allocations: 11.08 kB / 365.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.09918, allocations: 3.953 kB / 365.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.09919, allocations: 0 / 365.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.0992, allocations: 4 kB / 365.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.09932, allocations: 149.7 kB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.09933, allocations: 0 / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.346e-06/0.09933, allocations: 0 / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.09934, allocations: 0 / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-06/0.09935, allocations: 7.938 kB / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.09936, allocations: 0 / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.09936, allocations: 3.953 kB / 366 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.545e-05/0.09943, allocations: 65.06 kB / 366.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.09948, allocations: 81.11 kB / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.0995, allocations: 0 / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.127e-05/0.09952, allocations: 0 / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.303e-05/0.09953, allocations: 3.984 kB / 366.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.09954, allocations: 3.953 kB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.768e-05/0.09958, allocations: 83.28 kB / 366.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09959, allocations: 0 / 366.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000399/0.09999, allocations: 147.9 kB / 366.4 MB, free: 5.336 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009745/0.101, allocations: 0.4952 MB / 366.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.595e-05/0.1011, allocations: 11.94 kB / 366.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1011, allocations: 0 / 366.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.019e-06/0.1011, allocations: 4 kB / 366.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.1012, allocations: 7.969 kB / 366.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002072/0.1014, allocations: 116.4 kB / 367 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.1017, allocations: 0.6731 MB / 367.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.179e-05/0.1017, allocations: 16.11 kB / 367.7 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.936e-05/0.1018, allocations: 11.44 kB / 367.7 MB, free: 4 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1018, allocations: 0 / 367.7 MB, free: 4 MB / 302.1 MB Notification: Performance of Templates: time 0.006432/0.1082, allocations: 3.089 MB / 370.8 MB, free: 0.9102 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches