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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001284/0.001284, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 59.97 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08595/0.08723, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002178/0.08945, allocations: 1.194 MB / 358.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002979/0.09245, allocations: 2.08 MB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.091e-05/0.09249, allocations: 0 / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.238e-05/0.09252, allocations: 0 / 360.8 MB, free: 10.71 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.001207/0.09373, allocations: 462.6 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.614e-05/0.09377, allocations: 11.94 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 3.753e-05/0.09382, allocations: 8 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.519e-05/0.09386, allocations: 3.984 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.92e-05/0.09388, allocations: 7.938 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002946/0.09418, allocations: 21.3 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.297e-06/0.0942, allocations: 0 / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006903/0.0949, allocations: 467.5 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.217e-05/0.09492, allocations: 3.984 kB / 361.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.09495, allocations: 7.984 kB / 361.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000545/0.0955, allocations: 375.3 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.09551, allocations: 0 / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09552, allocations: 0 / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.09553, allocations: 8 kB / 362.2 MB, free: 9.363 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.0004423/0.09598, allocations: 419.6 kB / 362.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.09602, allocations: 12.03 kB / 362.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.09608, allocations: 110 kB / 362.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.512e-05/0.09615, allocations: 80.2 kB / 362.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.0963, allocations: 243.7 kB / 363 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.726e-05/0.09636, allocations: 154.9 kB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.09641, allocations: 154.5 kB / 363.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.141e-05/0.09647, allocations: 101 kB / 363.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.09651, allocations: 83.2 kB / 363.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.09656, allocations: 154.6 kB / 363.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.77e-05/0.09661, allocations: 150.6 kB / 363.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.347e-05/0.09667, allocations: 154.6 kB / 364 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002747/0.09695, allocations: 446 kB / 364.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.109e-05/0.09703, allocations: 173.1 kB / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.689e-05/0.09707, allocations: 88.06 kB / 364.7 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.0971, allocations: 79.28 kB / 364.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001113/0.09722, allocations: 43.33 kB / 364.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.274e-06/0.09723, allocations: 0 / 364.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001322/0.09737, allocations: 37.62 kB / 364.8 MB, free: 6.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.09741, allocations: 59.34 kB / 364.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.208e-05/0.09749, allocations: 97.86 kB / 365 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.09751, allocations: 33.77 kB / 365 MB, free: 6.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.09755, allocations: 92.12 kB / 365.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.067e-05/0.09757, allocations: 0 / 365.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/0.0976, allocations: 9.719 kB / 365.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.09769, allocations: 310.8 kB / 365.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.09771, allocations: 4 kB / 365.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.388e-06/0.09772, allocations: 0 / 365.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.107e-05/0.09774, allocations: 8.859 kB / 365.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.09775, allocations: 12 kB / 365.4 MB, free: 5.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.393e-05/0.09781, allocations: 37.62 kB / 365.5 MB, free: 5.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.09783, allocations: 4 kB / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.09784, allocations: 0 / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.09786, allocations: 0 / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.877e-05/0.09788, allocations: 4 kB / 365.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.09789, allocations: 0 / 365.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.619e-05/0.09791, allocations: 0 / 365.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-06/0.09792, allocations: 0 / 365.5 MB, free: 5.832 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.612e-05/0.098, allocations: 118.8 kB / 365.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.09801, allocations: 4 kB / 365.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.09805, allocations: 11.06 kB / 365.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.09805, allocations: 0 / 365.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.09806, allocations: 4 kB / 365.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.09807, allocations: 0 / 365.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.09818, allocations: 153.6 kB / 365.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.09819, allocations: 3.984 kB / 365.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-06/0.0982, allocations: 0 / 365.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.09821, allocations: 0 / 365.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-06/0.09822, allocations: 4 kB / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.09822, allocations: 0 / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.09823, allocations: 4 kB / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.726e-05/0.0983, allocations: 65.11 kB / 365.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.73e-05/0.09835, allocations: 81.09 kB / 365.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.09836, allocations: 3.984 kB / 365.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.504e-05/0.09839, allocations: 4 kB / 365.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.227e-05/0.0984, allocations: 7.969 kB / 365.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.09841, allocations: 0 / 365.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.941e-05/0.09845, allocations: 83.28 kB / 366 MB, free: 5.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09846, allocations: 0 / 366 MB, free: 5.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000409/0.09887, allocations: 144 kB / 366.1 MB, free: 5.055 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 (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.001144/0.1, allocations: 0.9943 MB / 367.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.916e-05/0.1001, allocations: 7.938 kB / 367.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1001, allocations: 4.062 kB / 367.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.293e-06/0.1001, allocations: 4 kB / 367.2 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1003, allocations: 4 kB / 367.2 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009772/0.1012, allocations: 1.154 MB / 368.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.1015, allocations: 0.6729 MB / 369 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.925e-05/0.1015, allocations: 23.92 kB / 369 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.1016, allocations: 19.44 kB / 369 MB, free: 2.098 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1016, allocations: 0 / 369 MB, free: 2.098 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1644/0.2659, allocations: 4.29 MB / 373.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.526/7.792, allocations: 8.469 kB / 373.3 MB, free: 18.2 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches