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.001244/0.001244, allocations: 112.4 kB / 17.05 MB, free: 6.086 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.001279/0.001279, allocations: 192 kB / 17.99 MB, free: 5.184 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 44.06 kB / 350.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2806, allocations: 49.44 MB / 400.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002742/0.2834, allocations: 1.184 MB / 401.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003721/0.2872, allocations: 1.957 MB / 403.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.484e-05/0.2872, allocations: 0 / 403.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.073e-05/0.2873, allocations: 0 / 403.3 MB, free: 5.801 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.001577/0.2889, allocations: 448.6 kB / 403.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.66e-05/0.2889, allocations: 0 / 403.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.568e-05/0.289, allocations: 7.938 kB / 403.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.644e-05/0.2891, allocations: 4 kB / 403.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.437e-05/0.2891, allocations: 7.938 kB / 403.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.2892, allocations: 15.91 kB / 403.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.2892, allocations: 0 / 403.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008103/0.29, allocations: 471.5 kB / 404.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.2901, allocations: 3.984 kB / 404.3 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.022e-05/0.2901, allocations: 7.938 kB / 404.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006448/0.2908, allocations: 345.7 kB / 404.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2908, allocations: 0 / 404.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2908, allocations: 0 / 404.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2908, allocations: 0 / 404.6 MB, free: 4.523 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.0005527/0.2913, allocations: 417.5 kB / 405 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.2914, allocations: 8.031 kB / 405 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.056e-05/0.2915, allocations: 106 kB / 405.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.578e-05/0.2916, allocations: 80.22 kB / 405.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.2918, allocations: 247.6 kB / 405.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-05/0.2918, allocations: 158.7 kB / 405.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.099e-05/0.2919, allocations: 154.6 kB / 405.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.195e-05/0.292, allocations: 104.9 kB / 405.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.593e-05/0.292, allocations: 75.28 kB / 405.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.682e-05/0.2921, allocations: 150.6 kB / 406.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.104e-05/0.2922, allocations: 154.6 kB / 406.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.855e-05/0.2922, allocations: 150.6 kB / 406.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003342/0.2926, allocations: 449.9 kB / 406.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.349e-05/0.2927, allocations: 177 kB / 407 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.907e-05/0.2927, allocations: 84.14 kB / 407.1 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.2928, allocations: 75.28 kB / 407.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002087/0.293, allocations: 51.41 kB / 407.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 3.035e-06/0.293, allocations: 0 / 407.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001924/0.2932, allocations: 37.64 kB / 407.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.2933, allocations: 59.47 kB / 407.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.2934, allocations: 101.8 kB / 407.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.2934, allocations: 29.7 kB / 407.4 MB, free: 1.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.2934, allocations: 80.14 kB / 407.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.2935, allocations: 3.984 kB / 407.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.2935, allocations: 13.72 kB / 407.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2937, allocations: 318.8 kB / 407.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-06/0.2937, allocations: 0 / 407.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.2937, allocations: 4 kB / 407.8 MB, free: 1.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.146e-05/0.2937, allocations: 12.8 kB / 407.8 MB, free: 1.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2937, allocations: 0 / 407.8 MB, free: 1.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.501e-05/0.2938, allocations: 37.64 kB / 407.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.2938, allocations: 4 kB / 407.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2938, allocations: 4 kB / 407.9 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2939, allocations: 3.938 kB / 407.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.992e-05/0.2939, allocations: 0 / 407.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.2939, allocations: 0 / 407.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.2939, allocations: 8.078 kB / 407.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.2939, allocations: 0 / 407.9 MB, free: 0.9883 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 8.176e-05/0.294, allocations: 113.8 kB / 408 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.294, allocations: 3.953 kB / 408 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.2941, allocations: 3.125 kB / 408 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2941, allocations: 0 / 408 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2941, allocations: 0 / 408 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2941, allocations: 4 kB / 408 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.2942, allocations: 153.6 kB / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2943, allocations: 4 kB / 408.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.939e-06/0.2943, allocations: 0 / 408.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2943, allocations: 0 / 408.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-06/0.2943, allocations: 4 kB / 408.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2943, allocations: 0 / 408.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2943, allocations: 0 / 408.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.208e-05/0.2944, allocations: 61 kB / 408.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-05/0.2944, allocations: 85.11 kB / 408.3 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.2944, allocations: 4.031 kB / 408.3 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.482e-05/0.2945, allocations: 0 / 408.3 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-06/0.2945, allocations: 3.938 kB / 408.3 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.2945, allocations: 3.984 kB / 408.3 MB, free: 468 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.862e-05/0.2945, allocations: 79.28 kB / 408.4 MB, free: 388 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2945, allocations: 0 / 408.4 MB, free: 388 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004908/0.295, allocations: 131.6 kB / 408.5 MB, free: 256 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.001543/0.2966, allocations: 0.9973 MB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.38e-05/0.2967, allocations: 0 / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.2967, allocations: 4 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.351e-06/0.2967, allocations: 0 / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.2969, allocations: 4 kB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.2982, allocations: 1.15 MB / 410.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.2985, allocations: 0.6727 MB / 411.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.411e-05/0.2985, allocations: 23.94 kB / 411.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.2986, allocations: 19.42 kB / 411.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2986, allocations: 0 / 411.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.3225, allocations: 3.909 MB / 415.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/8.009, allocations: 11.8 kB / 415.3 MB, free: 9.492 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