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.001022/0.001022, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009762/0.0009762, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.901/0.901, allocations: 173.4 MB / 200.5 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] 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 2.214e-06/2.214e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.579e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001789/0.001815, allocations: 1.176 MB / 319.6 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.004073, allocations: 1.989 MB / 321.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.004098, allocations: 0 / 321.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.12e-05/0.004119, allocations: 0 / 321.6 MB, free: 3.195 MB / 282.7 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.001217/0.005336, allocations: 454.1 kB / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.128e-05/0.005358, allocations: 0 / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.622e-05/0.005414, allocations: 15.92 kB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.383e-05/0.005458, allocations: 4 kB / 322 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.834e-05/0.005496, allocations: 7.938 kB / 322 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.005597, allocations: 3.984 kB / 322 MB, free: 2.719 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.005611, allocations: 0 / 322 MB, free: 2.719 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.006161, allocations: 451.4 kB / 322.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.696e-05/0.006178, allocations: 3.938 kB / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.668e-05/0.006204, allocations: 4 kB / 322.5 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.006637, allocations: 419.1 kB / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.006642, allocations: 0 / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.006643, allocations: 0 / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.006649, allocations: 0 / 322.9 MB, free: 1.859 MB / 282.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.0003791/0.007028, allocations: 332.8 kB / 323.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.007076, allocations: 8.922 kB / 323.2 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.73e-05/0.007123, allocations: 114 kB / 323.3 MB, free: 1.379 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.007169, allocations: 80.22 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.007293, allocations: 197 kB / 323.6 MB, free: 1.082 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.007331, allocations: 150.9 kB / 323.8 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.007367, allocations: 154.9 kB / 323.9 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.548e-05/0.007423, allocations: 109.3 kB / 324 MB, free: 0.668 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.007444, allocations: 75.28 kB / 324.1 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.007485, allocations: 150.6 kB / 324.2 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.00752, allocations: 150.6 kB / 324.4 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.925e-05/0.007559, allocations: 150.6 kB / 324.5 MB, free: 152 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002159/0.007775, allocations: 425 kB / 324.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.778e-05/0.007843, allocations: 173.1 kB / 325.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.709e-05/0.00787, allocations: 88.14 kB / 325.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.00789, allocations: 79.22 kB / 325.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.00805, allocations: 47.34 kB / 325.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.725e-06/0.008053, allocations: 0 / 325.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001293/0.008182, allocations: 37.64 kB / 325.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.008215, allocations: 51.41 kB / 325.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.782e-05/0.008283, allocations: 105.8 kB / 325.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.236e-06/0.008291, allocations: 25.7 kB / 325.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.993e-05/0.008321, allocations: 84.14 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.008335, allocations: 4.125 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/0.008359, allocations: 13.72 kB / 325.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.357e-05/0.008432, allocations: 310.8 kB / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.008441, allocations: 0 / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.158e-06/0.008446, allocations: 0 / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.099e-05/0.008467, allocations: 16.78 kB / 326 MB, free: 14.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.008468, allocations: 0 / 326 MB, free: 14.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.612e-05/0.008514, allocations: 45.53 kB / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.008527, allocations: 8 kB / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.008531, allocations: 4.094 kB / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.008544, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.175e-05/0.008566, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.00857, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.617e-05/0.008586, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.008593, allocations: 4 kB / 326 MB, free: 14.53 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.564e-05/0.008649, allocations: 105.8 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-06/0.008657, allocations: 7.922 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.008686, allocations: 7.156 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.008689, allocations: 0 / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.008693, allocations: 0 / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.008696, allocations: 4 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.829e-05/0.008784, allocations: 124.8 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.008785, allocations: 0 / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-06/0.008789, allocations: 0 / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.008792, allocations: 3.938 kB / 326.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.008798, allocations: 192 / 326.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.008801, allocations: 7.938 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008802, allocations: 0 / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.354e-05/0.008866, allocations: 69.05 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-06/0.008873, allocations: 7.938 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.858e-06/0.008883, allocations: 4.031 kB / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-06/0.00889, allocations: 0 / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.008901, allocations: 0 / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.008903, allocations: 0 / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.92e-05/0.008932, allocations: 79.28 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008932, allocations: 0 / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002941/0.009226, allocations: 131.6 kB / 326.6 MB, free: 13.91 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.000981/0.01021, allocations: 1.03 MB / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.223e-05/0.01028, allocations: 0 / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.01028, allocations: 4 kB / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-06/0.01028, allocations: 0 / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.0104, allocations: 128 / 327.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008214/0.01122, allocations: 1.16 MB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.146e-05/0.01126, allocations: 59.34 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.352e-05/0.01129, allocations: 4 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.01133, allocations: 16.48 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01133, allocations: 0 / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.03321, allocations: 4.632 MB / 333.5 MB, free: 7.074 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.922/6.955, allocations: 6.5 kB / 333.5 MB, free: 7.07 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/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: 8.784617874771357]