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.001461/0.001461, allocations: 106 kB / 17.06 MB, free: 6.098 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.001298/0.001298, allocations: 198.9 kB / 18 MB, free: 5.168 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.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 39.92 kB / 350.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2641, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002267/0.2664, allocations: 1.183 MB / 401.4 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.2695, allocations: 1.963 MB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.304e-05/0.2696, allocations: 0 / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.2696, allocations: 0 / 403.4 MB, free: 5.656 MB / 318.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.001159/0.2708, allocations: 437.9 kB / 403.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.335e-05/0.2708, allocations: 3.938 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.628e-05/0.2709, allocations: 11.98 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.599e-05/0.2709, allocations: 4 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.404e-05/0.271, allocations: 11.88 kB / 403.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.726e-05/0.2711, allocations: 10.48 kB / 403.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-06/0.2711, allocations: 0 / 403.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007219/0.2718, allocations: 475.5 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.176e-05/0.2718, allocations: 3.984 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.438e-05/0.2719, allocations: 7.938 kB / 404.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004776/0.2724, allocations: 341.7 kB / 404.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2724, allocations: 0 / 404.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.2724, allocations: 4 kB / 404.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2724, allocations: 4 kB / 404.6 MB, free: 4.379 MB / 318.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.0004706/0.2729, allocations: 406.6 kB / 405 MB, free: 3.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.2729, allocations: 12.03 kB / 405 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.077e-05/0.273, allocations: 106 kB / 405.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.2731, allocations: 84.16 kB / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.2732, allocations: 247.6 kB / 405.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.01e-05/0.2733, allocations: 150.9 kB / 405.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.278e-05/0.2733, allocations: 158.5 kB / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.979e-05/0.2734, allocations: 101 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.198e-05/0.2735, allocations: 79.22 kB / 406 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.905e-05/0.2735, allocations: 154.6 kB / 406.1 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.237e-05/0.2736, allocations: 150.6 kB / 406.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.38e-05/0.2736, allocations: 158.6 kB / 406.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002699/0.2739, allocations: 445.9 kB / 406.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.414e-05/0.274, allocations: 177.1 kB / 407 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.129e-05/0.274, allocations: 88.08 kB / 407.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.2741, allocations: 79.28 kB / 407.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.2742, allocations: 43.41 kB / 407.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 3.737e-06/0.2742, allocations: 0 / 407.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001331/0.2744, allocations: 37.64 kB / 407.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.2744, allocations: 55.34 kB / 407.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.905e-05/0.2745, allocations: 101.8 kB / 407.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.2745, allocations: 25.7 kB / 407.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.2746, allocations: 88.27 kB / 407.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.373e-05/0.2746, allocations: 0 / 407.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.2746, allocations: 13.72 kB / 407.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2748, allocations: 314.8 kB / 407.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.715e-06/0.2748, allocations: 0 / 407.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.123e-06/0.2748, allocations: 4 kB / 407.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.183e-05/0.2748, allocations: 8.859 kB / 407.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2748, allocations: 8 kB / 407.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.517e-05/0.2749, allocations: 37.64 kB / 407.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2749, allocations: 4 kB / 407.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.2749, allocations: 0 / 407.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.2749, allocations: 0 / 407.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.392e-05/0.275, allocations: 3.984 kB / 407.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.275, allocations: 0 / 407.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/0.275, allocations: 4 kB / 407.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.275, allocations: 0 / 407.9 MB, free: 0.8555 MB / 318.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 9.248e-05/0.2751, allocations: 113.8 kB / 408 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/0.2751, allocations: 3.953 kB / 408 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.2752, allocations: 11.12 kB / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2752, allocations: 0 / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2752, allocations: 0 / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2752, allocations: 0 / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.2753, allocations: 153.6 kB / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2753, allocations: 3.938 kB / 408.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-06/0.2753, allocations: 0 / 408.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2753, allocations: 0 / 408.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-06/0.2753, allocations: 0 / 408.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2753, allocations: 4 kB / 408.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2754, allocations: 3.984 kB / 408.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.715e-05/0.2754, allocations: 65.02 kB / 408.3 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.2755, allocations: 77.11 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.2755, allocations: 0 / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.048e-05/0.2755, allocations: 7.938 kB / 408.3 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.729e-06/0.2755, allocations: 3.984 kB / 408.3 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-06/0.2755, allocations: 4.031 kB / 408.4 MB, free: 324 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.181e-05/0.2756, allocations: 83.28 kB / 408.4 MB, free: 240 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2756, allocations: 0 / 408.4 MB, free: 240 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004044/0.276, allocations: 127.6 kB / 408.6 MB, free: 112 kB / 318.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.001193/0.2772, allocations: 0.986 MB / 409.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.909e-05/0.2773, allocations: 11.94 kB / 409.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2773, allocations: 4.062 kB / 409.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.323e-06/0.2773, allocations: 4 kB / 409.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.2774, allocations: 0 / 409.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.2785, allocations: 1.154 MB / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.2788, allocations: 0.6805 MB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.927e-05/0.2788, allocations: 7.938 kB / 411.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.415e-05/0.2788, allocations: 15.42 kB / 411.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of SimCode: time 6.42e-07/0.2789, allocations: 0 / 411.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.3099, allocations: 3.913 MB / 415.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.133, allocations: 3.859 kB / 415.3 MB, free: 9.355 MB / 334.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