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.00156/0.00156, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001731/0.001731, allocations: 193.4 kB / 18 MB, free: 5.074 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 47.94 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2669, allocations: 49.44 MB / 400.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002173/0.2692, allocations: 1.192 MB / 401.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.2723, allocations: 1.964 MB / 403.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.2723, allocations: 0 / 403.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.13e-05/0.2724, allocations: 0 / 403.4 MB, free: 5.816 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.001248/0.2736, allocations: 436.6 kB / 403.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.133e-05/0.2737, allocations: 4 kB / 403.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.03e-05/0.2737, allocations: 11.94 kB / 403.8 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.2738, allocations: 3.984 kB / 403.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.252e-05/0.2738, allocations: 7.938 kB / 403.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.2739, allocations: 7.984 kB / 403.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.037e-06/0.2739, allocations: 0 / 403.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007438/0.2747, allocations: 479.4 kB / 404.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.108e-05/0.2747, allocations: 0 / 404.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.927e-05/0.2747, allocations: 11.92 kB / 404.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004976/0.2752, allocations: 334.2 kB / 404.6 MB, free: 4.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2752, allocations: 0 / 404.6 MB, free: 4.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2753, allocations: 4 kB / 404.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.2753, allocations: 0 / 404.6 MB, free: 4.547 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.0004894/0.2758, allocations: 414.6 kB / 405 MB, free: 4.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2758, allocations: 8.031 kB / 405 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.078e-05/0.2759, allocations: 106 kB / 405.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.4e-05/0.276, allocations: 84.2 kB / 405.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.2762, allocations: 243.6 kB / 405.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.089e-05/0.2763, allocations: 158.9 kB / 405.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.2763, allocations: 158.5 kB / 405.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.589e-05/0.2764, allocations: 104.9 kB / 405.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.21e-05/0.2765, allocations: 75.28 kB / 406 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/0.2765, allocations: 154.5 kB / 406.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.665e-05/0.2766, allocations: 150.6 kB / 406.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.316e-05/0.2767, allocations: 154.6 kB / 406.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003333/0.277, allocations: 449.9 kB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.693e-05/0.2771, allocations: 169.1 kB / 407 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.601e-05/0.2772, allocations: 80.14 kB / 407.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.2772, allocations: 83.27 kB / 407.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.2774, allocations: 51.34 kB / 407.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.2774, allocations: 0 / 407.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.2776, allocations: 37.69 kB / 407.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.2776, allocations: 55.34 kB / 407.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.197e-05/0.2777, allocations: 97.98 kB / 407.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.2778, allocations: 33.7 kB / 407.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.2778, allocations: 80.14 kB / 407.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.2778, allocations: 0 / 407.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.2779, allocations: 17.7 kB / 407.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.278, allocations: 314.8 kB / 407.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-06/0.278, allocations: 0 / 407.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.2e-06/0.278, allocations: 0 / 407.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.751e-05/0.2781, allocations: 16.86 kB / 407.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2781, allocations: 3.938 kB / 407.9 MB, free: 1.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.552e-05/0.2781, allocations: 33.7 kB / 407.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2782, allocations: 10.48 kB / 407.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.2782, allocations: 4 kB / 407.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.2782, allocations: 0 / 407.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.037e-05/0.2782, allocations: 0 / 407.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2782, allocations: 0 / 407.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.2782, allocations: 0 / 407.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.2783, allocations: 0 / 407.9 MB, free: 1.023 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.848e-05/0.2783, allocations: 117.8 kB / 408 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.2784, allocations: 7.953 kB / 408 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.2784, allocations: 3.125 kB / 408 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2784, allocations: 0 / 408 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2784, allocations: 7.922 kB / 408 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2784, allocations: 4 kB / 408 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.2786, allocations: 149.6 kB / 408.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2786, allocations: 0 / 408.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-06/0.2786, allocations: 3.984 kB / 408.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.2786, allocations: 4 kB / 408.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.2786, allocations: 4 kB / 408.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2786, allocations: 3.938 kB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2786, allocations: 0 / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.602e-05/0.2787, allocations: 57.08 kB / 408.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.2788, allocations: 81.11 kB / 408.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.2788, allocations: 3.984 kB / 408.3 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.485e-05/0.2788, allocations: 0 / 408.3 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-06/0.2788, allocations: 7.969 kB / 408.3 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-06/0.2788, allocations: 0 / 408.3 MB, free: 492 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.417e-05/0.2789, allocations: 79.28 kB / 408.4 MB, free: 412 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2789, allocations: 0 / 408.4 MB, free: 412 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004388/0.2793, allocations: 131.6 kB / 408.6 MB, free: 280 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.00142/0.2808, allocations: 0.9852 MB / 409.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.028e-05/0.2809, allocations: 4 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2809, allocations: 4 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.097e-06/0.2809, allocations: 7.875 kB / 409.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.281, allocations: 10.64 kB / 409.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.2821, allocations: 1.154 MB / 410.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.2824, allocations: 0.6766 MB / 411.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.733e-05/0.2824, allocations: 11.98 kB / 411.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.08e-05/0.2825, allocations: 15.44 kB / 411.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2825, allocations: 4 kB / 411.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.309, allocations: 3.904 MB / 415.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.138/8.447, allocations: 7.797 kB / 415.3 MB, free: 9.516 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