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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00184/0.00184, allocations: 190.9 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 43.94 kB / 370.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2686, allocations: 52.17 MB / 422.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002329/0.2709, allocations: 1.203 MB / 423.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.2743, allocations: 1.981 MB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.068e-05/0.2743, allocations: 0 / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.043e-05/0.2743, allocations: 3.938 kB / 425.7 MB, free: 11.22 MB / 334.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.001197/0.2755, allocations: 436.8 kB / 426.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.638e-05/0.2755, allocations: 4 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.062e-05/0.2756, allocations: 11.92 kB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.2756, allocations: 8 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.185e-05/0.2757, allocations: 7.984 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.282e-05/0.2757, allocations: 2.188 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.2757, allocations: 4 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007269/0.2765, allocations: 443.5 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.334e-05/0.2765, allocations: 0 / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.2765, allocations: 7.984 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.277, allocations: 340.9 kB / 427 MB, free: 9.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.277, allocations: 0 / 427 MB, free: 9.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.277, allocations: 0 / 427 MB, free: 9.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.277, allocations: 4 kB / 427 MB, free: 9.984 MB / 334.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.0005059/0.2775, allocations: 333.5 kB / 427.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2776, allocations: 12.03 kB / 427.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.625e-05/0.2776, allocations: 106 kB / 427.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.2777, allocations: 76.22 kB / 427.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.2779, allocations: 189.8 kB / 427.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.398e-05/0.278, allocations: 154.9 kB / 427.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/0.278, allocations: 162.5 kB / 428 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.712e-05/0.2781, allocations: 104.9 kB / 428.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.2781, allocations: 75.28 kB / 428.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.2782, allocations: 150.6 kB / 428.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.116e-05/0.2783, allocations: 154.6 kB / 428.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.336e-05/0.2784, allocations: 158.5 kB / 428.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003112/0.2787, allocations: 417 kB / 429 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.2788, allocations: 173 kB / 429.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.888e-05/0.2788, allocations: 88.17 kB / 429.3 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.2789, allocations: 79.28 kB / 429.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001434/0.279, allocations: 43.42 kB / 429.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.279, allocations: 0 / 429.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001326/0.2792, allocations: 37.72 kB / 429.4 MB, free: 7.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.2792, allocations: 55.44 kB / 429.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.2793, allocations: 101.9 kB / 429.6 MB, free: 7.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.2793, allocations: 25.7 kB / 429.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.2794, allocations: 84.12 kB / 429.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.2794, allocations: 4 kB / 429.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.2794, allocations: 13.72 kB / 429.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2796, allocations: 310.8 kB / 430 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.887e-06/0.2796, allocations: 0 / 430 MB, free: 6.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-06/0.2796, allocations: 4 kB / 430 MB, free: 6.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.208e-05/0.2796, allocations: 8.922 kB / 430 MB, free: 6.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2796, allocations: 7.938 kB / 430 MB, free: 6.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.199e-05/0.2797, allocations: 45.62 kB / 430.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.2797, allocations: 4 kB / 430.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2797, allocations: 0 / 430.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.2797, allocations: 0 / 430.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.754e-05/0.2797, allocations: 0 / 430.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.2797, allocations: 4 kB / 430.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.626e-05/0.2797, allocations: 0 / 430.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-06/0.2797, allocations: 0 / 430.1 MB, free: 6.66 MB / 334.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.533e-05/0.2798, allocations: 113.8 kB / 430.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.2798, allocations: 7.953 kB / 430.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.451e-05/0.2799, allocations: 7.141 kB / 430.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2799, allocations: 3.938 kB / 430.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2799, allocations: 0 / 430.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.2799, allocations: 0 / 430.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.28, allocations: 124.7 kB / 430.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.28, allocations: 0 / 430.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-06/0.28, allocations: 192 / 430.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.28, allocations: 0 / 430.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.28, allocations: 3.984 kB / 430.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.28, allocations: 8 kB / 430.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.28, allocations: 3.984 kB / 430.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.261e-05/0.2801, allocations: 61.02 kB / 430.4 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-06/0.2801, allocations: 4 kB / 430.4 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.2801, allocations: 3.938 kB / 430.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.464e-05/0.2801, allocations: 3.984 kB / 430.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.2801, allocations: 0 / 430.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-06/0.2801, allocations: 0 / 430.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.427e-05/0.2802, allocations: 87.28 kB / 430.5 MB, free: 6.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2802, allocations: 0 / 430.5 MB, free: 6.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004017/0.2806, allocations: 127.6 kB / 430.6 MB, free: 6.039 MB / 334.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.00148/0.2821, allocations: 0.996 MB / 431.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.563e-05/0.2821, allocations: 4 kB / 431.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.2821, allocations: 0 / 431.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.249e-05/0.2822, allocations: 8 kB / 431.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.2823, allocations: 0 / 431.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2835, allocations: 1.158 MB / 432.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.762e-05/0.2835, allocations: 67.14 kB / 432.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.111e-05/0.2836, allocations: 16.11 kB / 432.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.2836, allocations: 15.44 kB / 432.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2836, allocations: 0 / 432.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03358/0.3172, allocations: 4.454 MB / 437.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.96, allocations: 8.609 kB / 437.3 MB, free: 15.41 MB / 350.1 MB " [Timeout remaining time 648] (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.000201919 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.528765937313437]