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.001344/0.001344, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001475/0.001475, allocations: 202.2 kB / 23.72 MB, free: 4.391 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.443/1.443, allocations: 230.5 MB / 257.4 MB, free: 7.766 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.001974/0.001974, allocations: 71.89 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2543, allocations: 53.41 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00238/0.2567, allocations: 1.203 MB / 432.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003509/0.2602, allocations: 2.091 MB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.125e-05/0.2602, allocations: 0 / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.829e-05/0.2603, allocations: 0 / 434.4 MB, free: 3.137 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.001389/0.2616, allocations: 474.5 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.721e-05/0.2617, allocations: 7.984 kB / 434.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.541e-05/0.2617, allocations: 7.938 kB / 434.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.729e-05/0.2618, allocations: 3.984 kB / 434.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.368e-05/0.2618, allocations: 7.938 kB / 434.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.828e-05/0.2618, allocations: 8 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.477e-06/0.2619, allocations: 0 / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008339/0.2627, allocations: 491.5 kB / 435.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.2627, allocations: 0 / 435.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.303e-05/0.2627, allocations: 15.92 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005532/0.2633, allocations: 376.8 kB / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2633, allocations: 0 / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2633, allocations: 0 / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.2633, allocations: 0 / 435.8 MB, free: 1.773 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.0004667/0.2638, allocations: 345.4 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2638, allocations: 15.98 kB / 436.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.103e-05/0.2639, allocations: 110 kB / 436.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.043e-05/0.2639, allocations: 84.17 kB / 436.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.2641, allocations: 185.8 kB / 436.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-05/0.2642, allocations: 154.9 kB / 436.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.947e-05/0.2642, allocations: 154.9 kB / 436.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.409e-05/0.2643, allocations: 109 kB / 436.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.547e-05/0.2644, allocations: 75.28 kB / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.634e-05/0.2644, allocations: 150.6 kB / 437.1 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.215e-05/0.2645, allocations: 150.6 kB / 437.3 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.523e-05/0.2646, allocations: 154.6 kB / 437.4 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003601/0.2649, allocations: 425 kB / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.265, allocations: 169.1 kB / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.193e-05/0.2651, allocations: 84.14 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.2651, allocations: 75.28 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.2653, allocations: 59.28 kB / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.2653, allocations: 0 / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001255/0.2654, allocations: 33.64 kB / 438.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.2655, allocations: 51.41 kB / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.2656, allocations: 105.8 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.2656, allocations: 25.7 kB / 438.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.253e-05/0.2656, allocations: 80.27 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.2656, allocations: 7.953 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.2657, allocations: 17.72 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2658, allocations: 310.8 kB / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.855e-06/0.2658, allocations: 0 / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.065e-06/0.2658, allocations: 4 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.269e-05/0.2659, allocations: 8.844 kB / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2659, allocations: 0 / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.792e-05/0.2659, allocations: 45.58 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2659, allocations: 4 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.2659, allocations: 4.094 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.266, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.368e-05/0.266, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.266, allocations: 4 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.266, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.266, allocations: 0 / 438.9 MB, free: 14.43 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 0.0001029/0.2661, allocations: 110.4 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.2661, allocations: 11.92 kB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.2662, allocations: 7.109 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2662, allocations: 0 / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2662, allocations: 4 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2662, allocations: 0 / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.2663, allocations: 124.8 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2663, allocations: 3.938 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-06/0.2663, allocations: 0 / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.2663, allocations: 0 / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.2663, allocations: 8.125 kB / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.87e-06/0.2663, allocations: 7.938 kB / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2663, allocations: 0 / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.839e-05/0.2664, allocations: 61.12 kB / 439.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-06/0.2664, allocations: 7.922 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.2664, allocations: 4.031 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.2664, allocations: 0 / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.486e-06/0.2664, allocations: 0 / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.2664, allocations: 4 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.034e-05/0.2665, allocations: 79.28 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2665, allocations: 3.938 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004708/0.267, allocations: 151.5 kB / 439.5 MB, free: 13.78 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.001537/0.2685, allocations: 0.9854 MB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.752e-05/0.2686, allocations: 4 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2686, allocations: 0 / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.145e-06/0.2686, allocations: 4 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.2687, allocations: 7.984 kB / 440.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.2699, allocations: 1.165 MB / 441.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.079e-05/0.27, allocations: 59.34 kB / 441.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.342e-05/0.27, allocations: 7.984 kB / 441.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.2701, allocations: 19.42 kB / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2701, allocations: 0 / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.3043, allocations: 4.877 MB / 446.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.64, allocations: 0 / 446.6 MB, free: 6.68 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.104960321914405]