Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008153/0.0008153, allocations: 79.7 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008109/0.0008109, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8685/0.8685, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 324.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.896e-05/2.054e-05, allocations: 2.281 kB / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001541/0.001561, allocations: 1.216 MB / 325.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.003561, allocations: 2.106 MB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.003583, allocations: 0 / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.003603, allocations: 3.938 kB / 327.8 MB, free: 12.64 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.001026/0.004629, allocations: 473.6 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.136e-05/0.004651, allocations: 4 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.736e-05/0.004698, allocations: 11.92 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.75e-05/0.004736, allocations: 0 / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.173e-05/0.004767, allocations: 11.94 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.106e-05/0.004838, allocations: 7.984 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.00485, allocations: 0 / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005941/0.005444, allocations: 495.2 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.005456, allocations: 4 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.005476, allocations: 7.984 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000411/0.005887, allocations: 466.9 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.005892, allocations: 4 kB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.005894, allocations: 0 / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.005898, allocations: 0 / 329.3 MB, free: 11.19 MB / 298.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.0003235/0.006221, allocations: 353.4 kB / 329.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.00626, allocations: 11.97 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.006306, allocations: 106 kB / 329.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.847e-05/0.006354, allocations: 84.17 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.006461, allocations: 185.1 kB / 330 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.494e-05/0.006496, allocations: 150.9 kB / 330.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/0.006525, allocations: 150.9 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.029e-05/0.006575, allocations: 105.3 kB / 330.4 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.006597, allocations: 83.28 kB / 330.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.006633, allocations: 150.6 kB / 330.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.792e-05/0.006681, allocations: 154.5 kB / 330.8 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.703e-05/0.006718, allocations: 158.5 kB / 331 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.007065, allocations: 417 kB / 331.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.239e-05/0.007127, allocations: 173.1 kB / 331.5 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.227e-05/0.00715, allocations: 80.14 kB / 331.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.00717, allocations: 75.28 kB / 331.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001551/0.007325, allocations: 47.3 kB / 331.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.013e-06/0.007327, allocations: 0 / 331.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000124/0.007451, allocations: 41.69 kB / 331.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.007482, allocations: 55.34 kB / 331.8 MB, free: 8.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.208e-05/0.007544, allocations: 102 kB / 331.9 MB, free: 8.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.685e-06/0.007551, allocations: 29.7 kB / 331.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.789e-05/0.007579, allocations: 84.12 kB / 332 MB, free: 8.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.007593, allocations: 3.953 kB / 332 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.007614, allocations: 9.719 kB / 332 MB, free: 8.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.22e-05/0.007686, allocations: 318.8 kB / 332.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.174e-06/0.007693, allocations: 3.938 kB / 332.4 MB, free: 7.926 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.389e-06/0.007697, allocations: 3.938 kB / 332.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.029e-05/0.007718, allocations: 8.859 kB / 332.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.00772, allocations: 0 / 332.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.771e-05/0.007757, allocations: 41.69 kB / 332.4 MB, free: 7.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.00777, allocations: 8 kB / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.007775, allocations: 0 / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.007786, allocations: 0 / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.082e-05/0.007807, allocations: 0 / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.007811, allocations: 0 / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.515e-05/0.007826, allocations: 0 / 332.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.007831, allocations: 3.938 kB / 332.4 MB, free: 7.852 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.105e-05/0.007882, allocations: 113.8 kB / 332.5 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.18e-06/0.007887, allocations: 3.938 kB / 332.5 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.007915, allocations: 19.12 kB / 332.6 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.007918, allocations: 0 / 332.6 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.007921, allocations: 0 / 332.6 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.007924, allocations: 0 / 332.6 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.337e-05/0.007997, allocations: 116.8 kB / 332.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.007999, allocations: 4 kB / 332.7 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-06/0.008001, allocations: 0 / 332.7 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.008004, allocations: 7.922 kB / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-06/0.008009, allocations: 0 / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.008009, allocations: 0 / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.00801, allocations: 0 / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.542e-05/0.008055, allocations: 61.14 kB / 332.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-06/0.00806, allocations: 3.938 kB / 332.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.008071, allocations: 7.984 kB / 332.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.901e-06/0.008077, allocations: 0 / 332.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-06/0.008086, allocations: 3.938 kB / 332.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-06/0.008088, allocations: 0 / 332.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.567e-05/0.008114, allocations: 83.28 kB / 332.8 MB, free: 7.363 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.008114, allocations: 0 / 332.8 MB, free: 7.363 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003029/0.008417, allocations: 155.5 kB / 333 MB, free: 7.211 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.0009796/0.009396, allocations: 1.033 MB / 334 MB, free: 6.234 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.262e-05/0.009459, allocations: 0 / 334 MB, free: 6.234 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.009461, allocations: 7.938 kB / 334 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.755e-06/0.009464, allocations: 0 / 334 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001078/0.009571, allocations: 10.78 kB / 334 MB, free: 6.219 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007392/0.01031, allocations: 1.161 MB / 335.2 MB, free: 4.973 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.29e-05/0.01034, allocations: 59.34 kB / 335.3 MB, free: 4.895 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.604e-05/0.01038, allocations: 7.984 kB / 335.3 MB, free: 4.887 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.904e-05/0.01041, allocations: 16.5 kB / 335.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01041, allocations: 0 / 335.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02011/0.03052, allocations: 5.04 MB / 340.3 MB, free: 15.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.595/6.625, allocations: 8 kB / 340.3 MB, free: 15.92 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.231977257877588]