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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 106.9 kB / 16.92 MB, free: 5.781 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.001239/0.001239, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.393/1.393, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 50.89 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1378, allocations: 49.43 MB / 350.1 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003509/0.1414, allocations: 1.197 MB / 351.3 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.1453, allocations: 1.959 MB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.729e-05/0.1453, allocations: 0 / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.762e-05/0.1454, allocations: 0 / 353.3 MB, free: 1.172 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.001699/0.1471, allocations: 426.6 kB / 353.7 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.275e-05/0.1472, allocations: 7.984 kB / 353.7 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.027e-05/0.1472, allocations: 11.94 kB / 353.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.127e-05/0.1473, allocations: 4 kB / 353.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.811e-05/0.1473, allocations: 7.938 kB / 353.7 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.1474, allocations: 11.98 kB / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.1475, allocations: 0 / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000926/0.1484, allocations: 427.5 kB / 354.2 MB, free: 300 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.1484, allocations: 7.969 kB / 354.2 MB, free: 292 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.1485, allocations: 7.938 kB / 354.2 MB, free: 284 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008205/0.1493, allocations: 327.5 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.1493, allocations: 0 / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1493, allocations: 3.938 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1493, allocations: 0 / 354.5 MB, free: 15.95 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.0006742/0.15, allocations: 418.9 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.1501, allocations: 8.031 kB / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.1502, allocations: 106 kB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.313e-05/0.1503, allocations: 80.16 kB / 355.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.1505, allocations: 247.9 kB / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.251e-05/0.1506, allocations: 150.9 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.927e-05/0.1506, allocations: 162.5 kB / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.289e-05/0.1507, allocations: 105 kB / 355.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.1508, allocations: 79.27 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.032e-05/0.1508, allocations: 150.6 kB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-05/0.1509, allocations: 150.6 kB / 356.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.757e-05/0.151, allocations: 154.5 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003576/0.1513, allocations: 453.9 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.1515, allocations: 169.1 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.545e-05/0.1515, allocations: 80.14 kB / 357 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.1516, allocations: 75.28 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.1518, allocations: 55.34 kB / 357.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.845e-06/0.1518, allocations: 3.938 kB / 357.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001777/0.152, allocations: 37.61 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.1521, allocations: 55.39 kB / 357.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1522, allocations: 97.86 kB / 357.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.1522, allocations: 25.7 kB / 357.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.82e-05/0.1523, allocations: 88.27 kB / 357.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.1523, allocations: 0 / 357.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.38e-05/0.1524, allocations: 9.719 kB / 357.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1525, allocations: 318.8 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.96e-05/0.1525, allocations: 4 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.1525, allocations: 3.938 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.63e-05/0.1526, allocations: 4.859 kB / 357.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1526, allocations: 8 kB / 357.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.984e-05/0.1526, allocations: 33.7 kB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.1527, allocations: 4 kB / 357.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1527, allocations: 0 / 357.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1527, allocations: 3.984 kB / 357.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.398e-05/0.1527, allocations: 8 kB / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.1528, allocations: 0 / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.01e-05/0.1528, allocations: 0 / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1528, allocations: 0 / 357.8 MB, free: 12.43 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 0.0001082/0.1529, allocations: 117.8 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.1529, allocations: 8 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/0.153, allocations: 7.062 kB / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.153, allocations: 0 / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.153, allocations: 0 / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.153, allocations: 0 / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.1532, allocations: 157.6 kB / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1532, allocations: 0 / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-06/0.1532, allocations: 0 / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1532, allocations: 0 / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1532, allocations: 0 / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.1532, allocations: 7.984 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1532, allocations: 4 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.527e-05/0.1533, allocations: 53.08 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.1534, allocations: 81.02 kB / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.1534, allocations: 7.938 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.767e-05/0.1534, allocations: 7.984 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.1535, allocations: 0 / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.1535, allocations: 7.969 kB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.909e-05/0.1535, allocations: 79.47 kB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1535, allocations: 0 / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.154, allocations: 128 kB / 358.4 MB, free: 11.68 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.001441/0.1555, allocations: 0.977 MB / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.354e-05/0.1556, allocations: 4 kB / 359.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1556, allocations: 0 / 359.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.506e-06/0.1556, allocations: 12 kB / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.1558, allocations: 3.984 kB / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.157, allocations: 1.146 MB / 360.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.1573, allocations: 0.6767 MB / 361.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.606e-05/0.1574, allocations: 7.984 kB / 361.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.423e-05/0.1574, allocations: 19.42 kB / 361.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1574, allocations: 0 / 361.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02486/0.1823, allocations: 3.888 MB / 365.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/7.971, allocations: 18.53 kB / 365.2 MB, free: 4.941 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches