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.00151/0.00151, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001698/0.001698, allocations: 210.5 kB / 23.74 MB, free: 4.672 MB / 14.72 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 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001653/0.001653, allocations: 51.92 kB / 377.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2321, allocations: 53.36 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002309/0.2344, allocations: 1.215 MB / 432.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.2379, allocations: 2.2 MB / 434.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.2379, allocations: 0 / 434.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.367e-05/0.2379, allocations: 0 / 434.5 MB, free: 3.438 MB / 334.1 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.001366/0.2393, allocations: 480.7 kB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.626e-05/0.2393, allocations: 4 kB / 435 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.506e-05/0.2394, allocations: 11.92 kB / 435 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.511e-05/0.2394, allocations: 3.938 kB / 435 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.395e-05/0.2394, allocations: 7.984 kB / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.908e-05/0.2395, allocations: 15.94 kB / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.2395, allocations: 4 kB / 435 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008631/0.2404, allocations: 0.515 MB / 435.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.2404, allocations: 0 / 435.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.2404, allocations: 7.984 kB / 435.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006248/0.2411, allocations: 384.8 kB / 435.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2411, allocations: 0 / 435.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2411, allocations: 4 kB / 435.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2411, allocations: 0 / 435.9 MB, free: 2.02 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.0004749/0.2415, allocations: 345.4 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2416, allocations: 12.03 kB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.522e-05/0.2416, allocations: 106 kB / 436.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.191e-05/0.2417, allocations: 84.11 kB / 436.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.2419, allocations: 189.8 kB / 436.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.105e-05/0.2419, allocations: 154.9 kB / 436.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.807e-05/0.242, allocations: 154.5 kB / 437 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.867e-05/0.2421, allocations: 105 kB / 437.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.2421, allocations: 75.28 kB / 437.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.617e-05/0.2422, allocations: 150.6 kB / 437.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.967e-05/0.2423, allocations: 150.6 kB / 437.4 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.78e-05/0.2423, allocations: 158.5 kB / 437.6 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003336/0.2427, allocations: 425 kB / 438 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.2428, allocations: 173.1 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.916e-05/0.2428, allocations: 80.14 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.356e-05/0.2429, allocations: 79.28 kB / 438.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.243, allocations: 51.34 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.206e-06/0.243, allocations: 0 / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001285/0.2432, allocations: 29.7 kB / 438.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.2432, allocations: 55.41 kB / 438.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.2433, allocations: 101.8 kB / 438.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.2433, allocations: 25.7 kB / 438.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/0.2434, allocations: 84.14 kB / 438.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.2434, allocations: 3.953 kB / 438.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.2434, allocations: 17.84 kB / 438.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.2436, allocations: 310.8 kB / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-06/0.2436, allocations: 0 / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.586e-06/0.2436, allocations: 3.938 kB / 439 MB, free: 14.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.506e-05/0.2436, allocations: 12.86 kB / 439 MB, free: 14.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2436, allocations: 3.938 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.988e-05/0.2437, allocations: 33.69 kB / 439 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2437, allocations: 16.03 kB / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2437, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.2437, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.877e-05/0.2437, allocations: 192 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.2437, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.2437, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.2438, allocations: 4 kB / 439.1 MB, free: 14.68 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.811e-05/0.2438, allocations: 121.7 kB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.758e-06/0.2438, allocations: 3.938 kB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.434e-05/0.2439, allocations: 23.09 kB / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2439, allocations: 0 / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2439, allocations: 0 / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2439, allocations: 0 / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.244, allocations: 124.7 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.244, allocations: 0 / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.517e-06/0.244, allocations: 0 / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.244, allocations: 0 / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.244, allocations: 3.938 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.244, allocations: 0 / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.244, allocations: 0 / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.577e-05/0.2441, allocations: 69.06 kB / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-06/0.2441, allocations: 0 / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.2441, allocations: 0 / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.261e-05/0.2441, allocations: 0 / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-06/0.2441, allocations: 4 kB / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/0.2441, allocations: 0 / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.998e-05/0.2442, allocations: 91.2 kB / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2442, allocations: 4.031 kB / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00045/0.2446, allocations: 143.5 kB / 439.6 MB, free: 14.04 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.001407/0.2461, allocations: 0.9796 MB / 440.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.959e-05/0.2461, allocations: 8 kB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2461, allocations: 0 / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.021e-05/0.2461, allocations: 7.922 kB / 440.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.2463, allocations: 4 kB / 440.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.2474, allocations: 1.162 MB / 441.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.2477, allocations: 0.6768 MB / 442.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.434e-05/0.2478, allocations: 12.05 kB / 442.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.617e-05/0.2478, allocations: 15.42 kB / 442.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2478, allocations: 0 / 442.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.2823, allocations: 4.455 MB / 447 MB, free: 6.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.06, allocations: 4.734 kB / 447 MB, free: 6.773 MB / 350.1 MB " [Timeout remaining time 649] (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/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_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: 13.443238846026361]