Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00213/0.00213, allocations: 214.1 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 55.91 kB / 377.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2643, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002212/0.2665, allocations: 1.219 MB / 432.4 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003394/0.2699, allocations: 2.191 MB / 434.6 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.141e-05/0.2699, allocations: 3.938 kB / 434.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.958e-05/0.2699, allocations: 0 / 434.6 MB, free: 3.266 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.00119/0.2711, allocations: 482.1 kB / 435 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.061e-05/0.2711, allocations: 4 kB / 435 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.86e-05/0.2712, allocations: 11.92 kB / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.505e-05/0.2712, allocations: 0 / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.576e-05/0.2712, allocations: 4 kB / 435.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.2715, allocations: 19.92 kB / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.347e-06/0.2715, allocations: 0 / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007894/0.2723, allocations: 0.5112 MB / 435.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.2723, allocations: 0 / 435.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.3e-05/0.2724, allocations: 11.92 kB / 435.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005236/0.2729, allocations: 383.5 kB / 436 MB, free: 1.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2729, allocations: 4 kB / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2729, allocations: 0 / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.2729, allocations: 0 / 436 MB, free: 1.859 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.0004382/0.2733, allocations: 345.4 kB / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2734, allocations: 8.031 kB / 436.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.146e-05/0.2734, allocations: 106 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.383e-05/0.2735, allocations: 84.17 kB / 436.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.2737, allocations: 189.8 kB / 436.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.188e-05/0.2737, allocations: 154.9 kB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/0.2738, allocations: 154.9 kB / 437 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.267e-05/0.2739, allocations: 105.1 kB / 437.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/0.2739, allocations: 75.28 kB / 437.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-05/0.274, allocations: 150.6 kB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-05/0.274, allocations: 154.6 kB / 437.5 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.213e-05/0.2741, allocations: 154.6 kB / 437.6 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003028/0.2744, allocations: 417 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.2745, allocations: 177.1 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.913e-05/0.2745, allocations: 84.14 kB / 438.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.2746, allocations: 75.28 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001426/0.2747, allocations: 47.34 kB / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.854e-06/0.2747, allocations: 0 / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001187/0.2748, allocations: 33.64 kB / 438.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.2749, allocations: 51.41 kB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.284e-05/0.275, allocations: 114 kB / 438.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.275, allocations: 29.64 kB / 438.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.275, allocations: 84.14 kB / 438.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.275, allocations: 7.891 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.2751, allocations: 13.72 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2752, allocations: 314.8 kB / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-06/0.2752, allocations: 0 / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-06/0.2752, allocations: 4 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.223e-05/0.2752, allocations: 12.92 kB / 439.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2752, allocations: 3.938 kB / 439.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.644e-05/0.2753, allocations: 37.64 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.2753, allocations: 4 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.2753, allocations: 0 / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.2753, allocations: 0 / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.881e-05/0.2753, allocations: 3.984 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.2753, allocations: 0 / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.544e-05/0.2754, allocations: 0 / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.2754, allocations: 8.031 kB / 439.1 MB, free: 14.52 MB / 350.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 7.853e-05/0.2754, allocations: 109.8 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.2754, allocations: 3.938 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.485e-05/0.2755, allocations: 11.11 kB / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2755, allocations: 0 / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.2755, allocations: 0 / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2755, allocations: 0 / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.2756, allocations: 124.8 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2756, allocations: 3.938 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-06/0.2756, allocations: 8 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2756, allocations: 0 / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.2756, allocations: 0 / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2756, allocations: 3.938 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2756, allocations: 0 / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.695e-05/0.2757, allocations: 61.12 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.8e-06/0.2757, allocations: 3.938 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.2757, allocations: 4 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.3e-05/0.2757, allocations: 4.031 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.004e-05/0.2757, allocations: 3.984 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-06/0.2757, allocations: 0 / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.466e-05/0.2758, allocations: 87.22 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2758, allocations: 0 / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004143/0.2762, allocations: 143.5 kB / 439.7 MB, free: 13.88 MB / 350.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.001327/0.2775, allocations: 0.9893 MB / 440.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.926e-05/0.2776, allocations: 8 kB / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2776, allocations: 4.062 kB / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.401e-06/0.2776, allocations: 0 / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.2777, allocations: 10.69 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.2788, allocations: 1.154 MB / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.2791, allocations: 0.6768 MB / 442.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.191e-05/0.2791, allocations: 7.984 kB / 442.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.2792, allocations: 15.44 kB / 442.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2792, allocations: 7.938 kB / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04415/0.3233, allocations: 4.448 MB / 447 MB, free: 6.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.16, allocations: 3.859 kB / 447 MB, free: 6.578 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 13.698029862000112]