Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008652/0.0008652, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000862/0.000862, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9339/0.9339, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.189e-05/2.368e-05, allocations: 8.75 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001671/0.001694, allocations: 1.2 MB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.004242, allocations: 2.106 MB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.845e-05/0.00427, allocations: 0 / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.441e-05/0.004295, allocations: 3.938 kB / 327.8 MB, free: 12.65 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378: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.001218/0.005513, allocations: 478.2 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.544e-05/0.005539, allocations: 3.984 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.881e-05/0.005588, allocations: 7.938 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.005626, allocations: 7.984 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.421e-05/0.00566, allocations: 7.938 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.783e-05/0.005718, allocations: 4 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.005729, allocations: 3.938 kB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006639/0.006393, allocations: 487.3 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.236e-05/0.006405, allocations: 4 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.832e-05/0.006424, allocations: 8 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.006935, allocations: 467 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.006938, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.00694, allocations: 3.938 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.006945, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.7 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.0003837/0.007328, allocations: 356.2 kB / 329.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.007367, allocations: 8.031 kB / 329.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.007414, allocations: 110 kB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.081e-05/0.007464, allocations: 84.16 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.007579, allocations: 185.1 kB / 330 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.007619, allocations: 150.9 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.007653, allocations: 154.9 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.225e-05/0.007715, allocations: 113.3 kB / 330.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.007738, allocations: 75.28 kB / 330.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.00778, allocations: 150.6 kB / 330.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.773e-05/0.007818, allocations: 150.6 kB / 330.8 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.503e-05/0.007863, allocations: 158.5 kB / 331 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002283/0.008091, allocations: 421 kB / 331.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.996e-05/0.008171, allocations: 169.1 kB / 331.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.733e-05/0.008199, allocations: 80.14 kB / 331.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.008229, allocations: 75.28 kB / 331.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.008417, allocations: 55.28 kB / 331.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.555e-06/0.00842, allocations: 4 kB / 331.7 MB, free: 8.605 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001386/0.008558, allocations: 33.7 kB / 331.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.008598, allocations: 55.34 kB / 331.8 MB, free: 8.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.682e-05/0.008674, allocations: 105.8 kB / 331.9 MB, free: 8.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.507e-06/0.008684, allocations: 25.7 kB / 332 MB, free: 8.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.109e-05/0.008715, allocations: 80.14 kB / 332 MB, free: 8.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.00873, allocations: 3.953 kB / 332 MB, free: 8.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.008756, allocations: 13.72 kB / 332 MB, free: 8.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.287e-05/0.008839, allocations: 322.8 kB / 332.4 MB, free: 7.926 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.008847, allocations: 4.125 kB / 332.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.05e-06/0.008852, allocations: 0 / 332.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.892e-05/0.008871, allocations: 8.859 kB / 332.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.008872, allocations: 3.938 kB / 332.4 MB, free: 7.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.145e-05/0.008914, allocations: 37.64 kB / 332.4 MB, free: 7.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.008926, allocations: 4 kB / 332.4 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.008931, allocations: 0 / 332.4 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.008942, allocations: 0 / 332.4 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.297e-05/0.008965, allocations: 3.984 kB / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.00897, allocations: 4.094 kB / 332.4 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.919e-05/0.008989, allocations: 3.938 kB / 332.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.932e-06/0.008995, allocations: 4 kB / 332.4 MB, free: 7.844 MB / 298.7 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 5.957e-05/0.009055, allocations: 109.8 kB / 332.5 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-06/0.009062, allocations: 3.938 kB / 332.5 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.009093, allocations: 11.11 kB / 332.6 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.009096, allocations: 0 / 332.6 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.0091, allocations: 0 / 332.6 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.009103, allocations: 0 / 332.6 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.465e-05/0.009197, allocations: 120.8 kB / 332.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.009199, allocations: 8 kB / 332.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.009202, allocations: 0 / 332.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.009204, allocations: 3.938 kB / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/0.009211, allocations: 0 / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.009212, allocations: 0 / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.009213, allocations: 4 kB / 332.7 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.248e-05/0.009266, allocations: 57.12 kB / 332.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-06/0.009274, allocations: 7.938 kB / 332.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-06/0.009284, allocations: 0 / 332.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.291e-06/0.00929, allocations: 3.938 kB / 332.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.009301, allocations: 0 / 332.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.009304, allocations: 4.031 kB / 332.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.149e-05/0.009335, allocations: 91.27 kB / 332.9 MB, free: 7.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009335, allocations: 0 / 332.9 MB, free: 7.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003218/0.009657, allocations: 147.5 kB / 333 MB, free: 7.211 MB / 298.7 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.0009504/0.01061, allocations: 1.027 MB / 334 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.486e-05/0.01068, allocations: 7.938 kB / 334 MB, free: 6.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.01069, allocations: 4 kB / 334 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.015e-06/0.01069, allocations: 0 / 334 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001141/0.0108, allocations: 10.64 kB / 334 MB, free: 6.219 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008668/0.01167, allocations: 1.153 MB / 335.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.64e-05/0.01171, allocations: 55.55 kB / 335.3 MB, free: 4.906 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.656e-05/0.01174, allocations: 15.98 kB / 335.3 MB, free: 4.891 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.01178, allocations: 16.48 kB / 335.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01178, allocations: 0 / 335.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.03059, allocations: 5.048 MB / 340.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.999/7.03, allocations: 9.969 kB / 340.3 MB, free: 15.92 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.892630177550018]