Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002218, allocations: 6.594 kB / 300.7 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08745, allocations: 50.42 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00107/0.08856, allocations: 0.9155 MB / 352 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.09101, allocations: 1.806 MB / 353.8 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.601e-05/0.09104, allocations: 0 / 353.8 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.374e-05/0.09107, allocations: 0 / 353.8 MB, free: 9.031 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.0008683/0.09194, allocations: 318.3 kB / 354.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.397e-05/0.09198, allocations: 7.984 kB / 354.2 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.022e-05/0.09202, allocations: 7.984 kB / 354.2 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.482e-05/0.09208, allocations: 4 kB / 354.2 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.123e-05/0.0921, allocations: 3.984 kB / 354.2 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.09223, allocations: 8 kB / 354.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.09225, allocations: 3.938 kB / 354.2 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005284/0.09278, allocations: 359.5 kB / 354.5 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.0928, allocations: 0 / 354.5 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.09284, allocations: 29.64 kB / 354.6 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.09319, allocations: 223.6 kB / 354.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.0932, allocations: 0 / 354.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.09321, allocations: 4 kB / 354.8 MB, free: 8.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.09322, allocations: 0 / 354.8 MB, free: 8.078 MB / 286.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.0004269/0.09366, allocations: 403.5 kB / 355.2 MB, free: 7.637 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.0937, allocations: 8.031 kB / 355.2 MB, free: 7.629 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.646e-05/0.09376, allocations: 87.12 kB / 355.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.09396, allocations: 250.3 kB / 355.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.154e-05/0.09402, allocations: 154.6 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.09407, allocations: 154.6 kB / 355.8 MB, free: 6.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.064e-05/0.09413, allocations: 101 kB / 355.9 MB, free: 6.848 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.09417, allocations: 75.28 kB / 356 MB, free: 6.773 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/0.09424, allocations: 154.6 kB / 356.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.743e-05/0.0943, allocations: 150.6 kB / 356.3 MB, free: 6.473 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.836e-05/0.09437, allocations: 158.5 kB / 356.4 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002666/0.09464, allocations: 449.9 kB / 356.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.968e-05/0.09473, allocations: 169.1 kB / 357 MB, free: 5.652 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.09476, allocations: 79.28 kB / 357.1 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/0.09491, allocations: 51.34 kB / 357.2 MB, free: 5.512 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.084e-06/0.09492, allocations: 0 / 357.2 MB, free: 5.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001276/0.09505, allocations: 29.7 kB / 357.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.09509, allocations: 51.41 kB / 357.3 MB, free: 5.414 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.379e-05/0.09518, allocations: 109.8 kB / 357.4 MB, free: 5.297 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.0952, allocations: 25.7 kB / 357.4 MB, free: 5.266 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.265e-05/0.09524, allocations: 80.14 kB / 357.5 MB, free: 5.184 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.09525, allocations: 4 kB / 357.5 MB, free: 5.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-06/0.09526, allocations: 4.125 kB / 357.5 MB, free: 5.176 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.944e-05/0.09536, allocations: 314.8 kB / 357.8 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.672e-06/0.09537, allocations: 0 / 357.8 MB, free: 4.859 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.398e-06/0.09538, allocations: 0 / 357.8 MB, free: 4.859 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.506e-05/0.0954, allocations: 7.922 kB / 357.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.09541, allocations: 4 kB / 357.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.352e-05/0.09545, allocations: 33.61 kB / 357.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.09547, allocations: 4 kB / 357.8 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.09548, allocations: 8.031 kB / 357.8 MB, free: 4.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.0955, allocations: 0 / 357.8 MB, free: 4.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.879e-05/0.09552, allocations: 0 / 357.8 MB, free: 4.797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.09553, allocations: 4 kB / 357.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.09555, allocations: 0 / 357.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.09558, allocations: 7.938 kB / 357.8 MB, free: 4.785 MB / 286.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 6.209e-05/0.09565, allocations: 109.8 kB / 358 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.09566, allocations: 11.92 kB / 358 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.324e-05/0.09569, allocations: 3.125 kB / 358 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.0957, allocations: 4 kB / 358 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.09571, allocations: 0 / 358 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.09572, allocations: 0 / 358 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.09584, allocations: 157.6 kB / 358.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.09585, allocations: 0 / 358.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.146e-06/0.09586, allocations: 0 / 358.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.09586, allocations: 0 / 358.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.09587, allocations: 3.938 kB / 358.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.09588, allocations: 0 / 358.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.09589, allocations: 4 kB / 358.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.641e-05/0.09596, allocations: 61.08 kB / 358.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/0.096, allocations: 81.3 kB / 358.3 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.09602, allocations: 8 kB / 358.3 MB, free: 4.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.152e-05/0.09604, allocations: 0 / 358.3 MB, free: 4.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.09606, allocations: 3.984 kB / 358.3 MB, free: 4.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/0.09607, allocations: 0 / 358.3 MB, free: 4.246 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.74e-05/0.09611, allocations: 83.27 kB / 358.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09611, allocations: 0 / 358.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.09648, allocations: 135.9 kB / 358.5 MB, free: 4.031 MB / 286.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.0007963/0.09729, allocations: 487.9 kB / 359 MB, free: 3.621 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 5.636e-05/0.09735, allocations: 3.938 kB / 359 MB, free: 3.617 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.09736, allocations: 0 / 359 MB, free: 3.617 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.768e-06/0.09737, allocations: 4 kB / 359 MB, free: 3.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.042e-05/0.09747, allocations: 3.953 kB / 359 MB, free: 3.609 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001953/0.09767, allocations: 116.8 kB / 359.1 MB, free: 3.465 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.09785, allocations: 0.6811 MB / 359.8 MB, free: 2.758 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.609e-05/0.09789, allocations: 11.92 kB / 359.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.941e-05/0.09791, allocations: 11.44 kB / 359.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09792, allocations: 0 / 359.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of Templates: time 0.005193/0.1031, allocations: 2.724 MB / 362.5 MB, free: 8 kB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches