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.001363/0.001363, 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.001433/0.001433, allocations: 207.4 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.468/1.468, allocations: 230.5 MB / 257.4 MB, free: 7.734 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.002232/0.002232, allocations: 63.89 kB / 377.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2607, allocations: 53.4 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002596/0.2633, allocations: 1.215 MB / 432.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003786/0.2671, allocations: 2.083 MB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.974e-05/0.2671, allocations: 0 / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.71e-05/0.2672, allocations: 3.938 kB / 434.4 MB, free: 3.133 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.001588/0.2687, allocations: 477.7 kB / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.919e-05/0.2688, allocations: 3.984 kB / 434.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.593e-05/0.2688, allocations: 11.92 kB / 434.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.214e-05/0.2689, allocations: 8 kB / 434.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.237e-05/0.2689, allocations: 3.938 kB / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.238e-05/0.269, allocations: 4 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.269, allocations: 0 / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009867/0.27, allocations: 499.4 kB / 435.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.27, allocations: 0 / 435.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.27, allocations: 4 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008049/0.2708, allocations: 380.8 kB / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2708, allocations: 0 / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2708, allocations: 0 / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.2708, 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.0005309/0.2714, allocations: 345.4 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.2714, allocations: 15.98 kB / 436.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.818e-05/0.2715, allocations: 106 kB / 436.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.415e-05/0.2715, allocations: 84.17 kB / 436.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.2717, allocations: 197.7 kB / 436.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.333e-05/0.2718, allocations: 154.9 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.2719, allocations: 150.9 kB / 436.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.601e-05/0.2719, allocations: 105.1 kB / 436.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.104e-05/0.272, allocations: 75.28 kB / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/0.272, allocations: 150.6 kB / 437.1 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-05/0.2721, allocations: 154.6 kB / 437.3 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.301e-05/0.2722, allocations: 154.5 kB / 437.4 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.2725, allocations: 424.9 kB / 437.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.2726, allocations: 165.1 kB / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.281e-05/0.2727, allocations: 84.14 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.062e-05/0.2727, allocations: 83.28 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.2729, allocations: 51.28 kB / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.495e-06/0.2729, allocations: 0 / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001335/0.273, allocations: 29.7 kB / 438.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.2731, allocations: 51.41 kB / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2732, allocations: 105.8 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.2732, allocations: 25.7 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.086e-05/0.2732, allocations: 84.14 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.2732, allocations: 12.08 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.2733, allocations: 9.719 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2734, allocations: 314.8 kB / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.2734, allocations: 4 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-06/0.2734, allocations: 0 / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.827e-05/0.2735, allocations: 12.8 kB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2735, allocations: 0 / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.209e-05/0.2735, allocations: 37.64 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2735, allocations: 4 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2735, allocations: 4.094 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.2736, allocations: 4 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.096e-05/0.2736, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.2736, allocations: 3.984 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.2736, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.2736, 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 8.623e-05/0.2737, allocations: 114.4 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.2737, allocations: 3.938 kB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.2737, allocations: 7.109 kB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2737, allocations: 0 / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2737, allocations: 4 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.2737, allocations: 8.125 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.2739, allocations: 120.8 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2739, allocations: 3.938 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.059e-05/0.2739, allocations: 15.92 kB / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2739, allocations: 0 / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.2739, allocations: 3.938 kB / 439.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.2739, allocations: 0 / 439.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2739, allocations: 0 / 439.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.169e-05/0.274, allocations: 61.12 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-06/0.274, allocations: 3.938 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.274, allocations: 4.031 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.328e-05/0.274, allocations: 0 / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.274, allocations: 4 kB / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.274, allocations: 0 / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.178e-05/0.2741, allocations: 87.27 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2741, allocations: 0 / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.2746, allocations: 143.5 kB / 439.5 MB, free: 13.79 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.001724/0.2763, allocations: 0.9932 MB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.152e-05/0.2764, allocations: 4 kB / 440.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2764, allocations: 0 / 440.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.122e-05/0.2764, allocations: 7.938 kB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.2766, allocations: 4 kB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.2779, allocations: 1.162 MB / 441.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.838e-05/0.278, allocations: 59.34 kB / 441.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.905e-05/0.278, allocations: 7.984 kB / 441.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.2781, allocations: 15.44 kB / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2781, allocations: 0 / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04584/0.3239, allocations: 4.877 MB / 446.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.26, allocations: 3.984 kB / 446.6 MB, free: 6.68 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 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.mat","/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.6771443458274]