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.001473/0.001473, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001656/0.001656, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.342/1.342, allocations: 230.6 MB / 258.3 MB, free: 7.789 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 43.92 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2346, allocations: 53.36 MB / 431.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00215/0.2367, allocations: 1.207 MB / 433 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003136/0.2398, allocations: 2.088 MB / 435.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.86e-05/0.2399, allocations: 0 / 435.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.2399, allocations: 0 / 435.1 MB, free: 3.32 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.001163/0.241, allocations: 481 kB / 435.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.957e-05/0.2411, allocations: 0 / 435.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.621e-05/0.2411, allocations: 11.88 kB / 435.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.2411, allocations: 11.98 kB / 435.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.2412, allocations: 4 kB / 435.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.676e-05/0.2412, allocations: 3.984 kB / 435.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.2412, allocations: 4 kB / 435.6 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007437/0.242, allocations: 0.4956 MB / 436.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.242, allocations: 11.92 kB / 436.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.543e-05/0.242, allocations: 0 / 436.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005434/0.2426, allocations: 379.9 kB / 436.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2426, allocations: 0 / 436.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2426, allocations: 0 / 436.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.2426, allocations: 4 kB / 436.5 MB, free: 1.938 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.0004345/0.243, allocations: 353.4 kB / 436.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.243, allocations: 8.031 kB / 436.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.844e-05/0.2431, allocations: 75.47 kB / 436.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.846e-05/0.2431, allocations: 106 kB / 437 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.817e-05/0.2432, allocations: 84.17 kB / 437.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.2434, allocations: 189.8 kB / 437.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.353e-05/0.2434, allocations: 158.7 kB / 437.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.2435, allocations: 150.6 kB / 437.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.982e-05/0.2436, allocations: 105 kB / 437.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.2436, allocations: 79.22 kB / 437.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.18e-05/0.2437, allocations: 154.6 kB / 437.9 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.098e-05/0.2437, allocations: 150.6 kB / 438.1 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.889e-05/0.2438, allocations: 150.6 kB / 438.2 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000307/0.2441, allocations: 425 kB / 438.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.851e-05/0.2442, allocations: 173.1 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.755e-05/0.2442, allocations: 84.08 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.2443, allocations: 75.28 kB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001219/0.2444, allocations: 47.41 kB / 439 MB, free: 15.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.693e-06/0.2444, allocations: 0 / 439 MB, free: 15.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001094/0.2445, allocations: 37.7 kB / 439.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.2446, allocations: 55.34 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.78e-05/0.2446, allocations: 105.8 kB / 439.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.2447, allocations: 25.7 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.2447, allocations: 80.14 kB / 439.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.2447, allocations: 3.953 kB / 439.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.2447, allocations: 17.72 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2449, allocations: 310.8 kB / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.454e-06/0.2449, allocations: 0 / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.088e-06/0.2449, allocations: 0 / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.064e-05/0.2449, allocations: 20.97 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2449, allocations: 0 / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.208e-05/0.245, allocations: 45.58 kB / 439.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.245, allocations: 4 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.245, allocations: 0 / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.245, allocations: 0 / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.535e-05/0.245, allocations: 0 / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.245, allocations: 4 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.245, allocations: 0 / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.245, allocations: 4 kB / 439.7 MB, free: 14.52 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 7.496e-05/0.2451, allocations: 121.7 kB / 439.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.886e-06/0.2451, allocations: 0 / 439.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.347e-05/0.2452, allocations: 11.11 kB / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2452, allocations: 0 / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.2452, allocations: 0 / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.2452, allocations: 0 / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.2453, allocations: 128.7 kB / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.2453, allocations: 0 / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-06/0.2453, allocations: 0 / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.2453, allocations: 0 / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-06/0.2453, allocations: 0 / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.2453, allocations: 4 kB / 440 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2453, allocations: 0 / 440 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.172e-05/0.2454, allocations: 69 kB / 440 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.17e-06/0.2454, allocations: 4 kB / 440 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.032e-05/0.2454, allocations: 0 / 440 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.253e-05/0.2454, allocations: 3.938 kB / 440.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.076e-05/0.2454, allocations: 192 / 440.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-06/0.2454, allocations: 0 / 440.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.818e-05/0.2455, allocations: 87.25 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2455, allocations: 0 / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004006/0.2459, allocations: 159.5 kB / 440.3 MB, free: 13.87 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.001341/0.2472, allocations: 0.992 MB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.998e-05/0.2473, allocations: 7.938 kB / 441.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.2473, allocations: 4.062 kB / 441.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.069e-05/0.2473, allocations: 7.984 kB / 441.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.2474, allocations: 4 kB / 441.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2485, allocations: 1.154 MB / 442.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.303e-05/0.2485, allocations: 55.36 kB / 442.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.31e-05/0.2485, allocations: 15.98 kB / 442.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.237e-05/0.2486, allocations: 27.55 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2486, allocations: 0 / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.2764, allocations: 4.527 MB / 447.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.73, allocations: 4.734 kB / 447.1 MB, free: 7.168 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.066387910046615]