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.001158/0.001158, allocations: 100.3 kB / 16.5 MB, free: 6.648 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.001544/0.001544, allocations: 195 kB / 17.42 MB, free: 6.062 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.311/1.311, allocations: 222.9 MB / 241.1 MB, free: 15.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 43.81 kB / 300 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09818, allocations: 49.45 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00276/0.101, allocations: 1.258 MB / 350.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00321/0.1042, allocations: 1.987 MB / 352.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.033e-05/0.1043, allocations: 4 kB / 352.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.204e-05/0.1043, allocations: 3.984 kB / 352.7 MB, free: 1.484 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.001274/0.1056, allocations: 333.5 kB / 353.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.335e-05/0.1056, allocations: 0 / 353.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.129e-05/0.1057, allocations: 7.938 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.1057, allocations: 7.984 kB / 353.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.538e-05/0.1058, allocations: 7.875 kB / 353.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.1059, allocations: 11.98 kB / 353.1 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.1059, allocations: 4 kB / 353.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007905/0.1067, allocations: 419.6 kB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.1067, allocations: 4 kB / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.714e-05/0.1068, allocations: 7.938 kB / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007023/0.1075, allocations: 343.4 kB / 353.9 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1075, allocations: 4 kB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1075, allocations: 0 / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1075, allocations: 0 / 353.9 MB, free: 368 kB / 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.0004958/0.108, allocations: 403.4 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.108, allocations: 8.031 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.1082, allocations: 106 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.487e-05/0.1083, allocations: 84.22 kB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.1085, allocations: 247.9 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.988e-05/0.1086, allocations: 150.9 kB / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.971e-05/0.1086, allocations: 154.5 kB / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.284e-05/0.1087, allocations: 108.9 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.1087, allocations: 75.28 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.131e-05/0.1088, allocations: 154.6 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.664e-05/0.1089, allocations: 150.6 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.199e-05/0.1089, allocations: 150.6 kB / 355.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.1092, allocations: 454 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.478e-05/0.1093, allocations: 177 kB / 356.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.431e-05/0.1093, allocations: 84.14 kB / 356.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1094, allocations: 75.28 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/0.1095, allocations: 43.41 kB / 356.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.374e-06/0.1095, allocations: 0 / 356.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001346/0.1097, allocations: 45.55 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.1097, allocations: 55.34 kB / 356.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.175e-05/0.1098, allocations: 105.8 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.1098, allocations: 25.7 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.894e-05/0.1099, allocations: 88.14 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.1099, allocations: 0 / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.1099, allocations: 9.719 kB / 356.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.11, allocations: 314.8 kB / 357.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-06/0.1101, allocations: 8.125 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.999e-06/0.1101, allocations: 0 / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.452e-05/0.1101, allocations: 12.86 kB / 357.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.1101, allocations: 3.938 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.749e-05/0.1102, allocations: 37.58 kB / 357.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1102, allocations: 4 kB / 357.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1102, allocations: 4 kB / 357.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1102, allocations: 4 kB / 357.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.344e-05/0.1103, allocations: 8.078 kB / 357.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1103, allocations: 0 / 357.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.1103, allocations: 0 / 357.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.1103, allocations: 0 / 357.2 MB, free: 12.83 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 6.801e-05/0.1104, allocations: 109.8 kB / 357.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.1104, allocations: 4 kB / 357.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.1104, allocations: 3.125 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1104, allocations: 0 / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1104, allocations: 0 / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.1104, allocations: 4 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.1106, allocations: 157.6 kB / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1106, allocations: 0 / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-06/0.1106, allocations: 0 / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1106, allocations: 0 / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.1106, allocations: 0 / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1106, allocations: 4 kB / 357.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1106, allocations: 3.984 kB / 357.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.544e-05/0.1107, allocations: 65.02 kB / 357.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.1107, allocations: 81.02 kB / 357.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.1107, allocations: 4 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.444e-05/0.1108, allocations: 0 / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.1108, allocations: 7.922 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.1108, allocations: 0 / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.989e-05/0.1108, allocations: 83.28 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1108, allocations: 0 / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004224/0.1113, allocations: 124 kB / 357.8 MB, free: 12.09 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.001232/0.1125, allocations: 0.9846 MB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.302e-05/0.1126, allocations: 4 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1126, allocations: 0 / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.186e-06/0.1126, allocations: 8 kB / 358.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001539/0.1128, allocations: 0 / 358.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.1138, allocations: 1.136 MB / 359.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.1141, allocations: 0.681 MB / 360.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.272e-05/0.1141, allocations: 11.92 kB / 360.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.695e-05/0.1142, allocations: 19.42 kB / 360.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1142, allocations: 0 / 360.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01592/0.1301, allocations: 3.758 MB / 364.4 MB, free: 5.523 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.1303, allocations: 250.2 kB / 364.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/1.992, allocations: 0 / 364.6 MB, free: 5.266 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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