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.000878/0.000878, 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.001018/0.001018, allocations: 157.4 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.8828/0.8828, allocations: 173.3 MB / 200.4 MB, free: 9.434 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 1.412e-06/1.412e-06, allocations: 0 / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.159e-05/1.3e-05, allocations: 6.281 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001374/0.001387, allocations: 1.188 MB / 319.6 MB, free: 5.188 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.003455, allocations: 1.985 MB / 321.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.009e-05/0.003475, allocations: 0 / 321.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.615e-05/0.003491, 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.0008705/0.004362, allocations: 446.2 kB / 322 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.952e-05/0.004381, allocations: 3.984 kB / 322 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.172e-05/0.004423, allocations: 7.938 kB / 322 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.398e-05/0.004457, allocations: 7.984 kB / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.764e-05/0.004485, allocations: 3.938 kB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.86e-05/0.004543, allocations: 8 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.004554, allocations: 0 / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004497/0.005003, allocations: 447.4 kB / 322.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.005015, allocations: 3.938 kB / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.515e-05/0.00503, allocations: 0 / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003897/0.00542, allocations: 423 kB / 322.9 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.005422, allocations: 0 / 322.9 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005422, allocations: 0 / 322.9 MB, free: 1.871 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.005426, allocations: 0 / 322.9 MB, free: 1.871 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.0003326/0.005758, allocations: 333.6 kB / 323.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.005798, allocations: 8.922 kB / 323.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001853/0.005984, allocations: 110 kB / 323.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.707e-05/0.006031, allocations: 80.22 kB / 323.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.006139, allocations: 201 kB / 323.6 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.963e-05/0.006179, allocations: 154.9 kB / 323.8 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.178e-05/0.006211, allocations: 150.9 kB / 323.9 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.848e-05/0.006259, allocations: 109.2 kB / 324 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.006279, allocations: 83.22 kB / 324.1 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.006315, allocations: 150.6 kB / 324.2 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.006348, allocations: 150.6 kB / 324.4 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.495e-05/0.006383, allocations: 150.6 kB / 324.5 MB, free: 152 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.006582, allocations: 421 kB / 324.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.062e-05/0.006642, allocations: 177.1 kB / 325.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.281e-05/0.006665, allocations: 84.14 kB / 325.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.006683, allocations: 79.22 kB / 325.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/0.006784, allocations: 51.34 kB / 325.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.954e-06/0.006786, allocations: 0 / 325.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001136/0.0069, allocations: 41.62 kB / 325.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.006928, allocations: 51.41 kB / 325.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.511e-05/0.006983, allocations: 97.86 kB / 325.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.345e-06/0.006991, allocations: 25.7 kB / 325.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.562e-05/0.007017, allocations: 88.12 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.138e-05/0.007028, allocations: 128 / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.007048, allocations: 17.72 kB / 325.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.007115, allocations: 314.8 kB / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.035e-06/0.007123, allocations: 0 / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-06/0.00713, allocations: 0 / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.962e-05/0.00715, allocations: 8.859 kB / 326 MB, free: 14.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.007151, allocations: 0 / 326 MB, free: 14.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.066e-05/0.007192, allocations: 49.52 kB / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.007205, allocations: 8 kB / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.007209, allocations: 0 / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.007218, allocations: 4.094 kB / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.651e-05/0.007235, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.007239, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.118e-05/0.007251, allocations: 0 / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.007255, allocations: 0 / 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 4.764e-05/0.007303, allocations: 109.8 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-06/0.007308, allocations: 3.938 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.007329, allocations: 7.141 kB / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.007332, allocations: 4 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.007335, allocations: 0 / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.007337, allocations: 4 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.032e-05/0.007407, allocations: 120.8 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.007408, allocations: 0 / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.854e-06/0.00741, allocations: 0 / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.007412, allocations: 7.922 kB / 326.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.007417, allocations: 0 / 326.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.007418, allocations: 4 kB / 326.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.007419, allocations: 3.938 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.051e-05/0.007459, allocations: 61.02 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-06/0.007463, allocations: 3.938 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-06/0.007472, allocations: 7.984 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.861e-06/0.007478, allocations: 4.031 kB / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.007492, allocations: 4 kB / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-06/0.007493, allocations: 192 / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.374e-05/0.007516, allocations: 83.27 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007517, allocations: 0 / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002669/0.007783, 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.001045/0.008828, allocations: 1.016 MB / 327.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.676e-05/0.008885, allocations: 4 kB / 327.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.008887, allocations: 0 / 327.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.96e-06/0.008891, allocations: 7.984 kB / 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 9.543e-05/0.008987, 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.0006692/0.009656, allocations: 1.157 MB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.003e-05/0.009686, allocations: 55.36 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.063e-05/0.009707, allocations: 15.92 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.637e-05/0.009733, allocations: 20.48 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.009734, allocations: 0 / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.0267, allocations: 4.622 MB / 333.5 MB, free: 7.074 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.853/6.879, allocations: 3 kB / 333.5 MB, free: 7.074 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 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.mat","/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.531561933457851]