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.001504/0.001504, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001604/0.001604, allocations: 215 kB / 21.45 MB, free: 1.617 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.403/1.403, allocations: 230.6 MB / 254.8 MB, free: 15.27 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.001422/0.001422, allocations: 43.92 kB / 373.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09597/0.09739, allocations: 53.33 MB / 427 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002311/0.0997, allocations: 1.204 MB / 428.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003235/0.1029, allocations: 2.098 MB / 430.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.703e-05/0.103, allocations: 0 / 430.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.47e-05/0.103, allocations: 0 / 430.3 MB, free: 1.555 MB / 350.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.001182/0.1042, allocations: 473.1 kB / 430.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.265e-05/0.1042, allocations: 3.984 kB / 430.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.84e-05/0.1042, allocations: 15.94 kB / 430.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.645e-05/0.1043, allocations: 3.938 kB / 430.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.02e-05/0.1043, allocations: 7.984 kB / 430.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.1045, allocations: 10.02 kB / 430.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-06/0.1045, allocations: 0 / 430.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007447/0.1053, allocations: 0.5267 MB / 431.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.1053, allocations: 0 / 431.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.1053, allocations: 7.938 kB / 431.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000524/0.1058, allocations: 375.1 kB / 431.7 MB, free: 156 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1058, allocations: 0 / 431.7 MB, free: 156 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1058, allocations: 0 / 431.7 MB, free: 156 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.1059, allocations: 3.984 kB / 431.7 MB, free: 152 kB / 350.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.0005478/0.1064, allocations: 426.5 kB / 432.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1064, allocations: 12.03 kB / 432.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.043e-05/0.1065, allocations: 79.47 kB / 432.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.631e-05/0.1065, allocations: 110 kB / 432.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.378e-05/0.1066, allocations: 80.17 kB / 432.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.1068, allocations: 247.6 kB / 432.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.253e-05/0.1069, allocations: 154.7 kB / 432.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.255e-05/0.107, allocations: 150.6 kB / 432.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.199e-05/0.107, allocations: 109 kB / 433 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/0.1071, allocations: 75.28 kB / 433.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.1072, allocations: 154.6 kB / 433.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.426e-05/0.1072, allocations: 150.6 kB / 433.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.109e-05/0.1073, allocations: 154.5 kB / 433.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003136/0.1076, allocations: 449.9 kB / 434 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.787e-05/0.1077, allocations: 173.1 kB / 434.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.556e-05/0.1077, allocations: 80.14 kB / 434.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.1078, allocations: 79.22 kB / 434.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.1079, allocations: 55.34 kB / 434.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.984e-06/0.1079, allocations: 0 / 434.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000127/0.1081, allocations: 29.7 kB / 434.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.852e-05/0.1081, allocations: 55.41 kB / 434.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.673e-05/0.1082, allocations: 101.8 kB / 434.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.1083, allocations: 25.7 kB / 434.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.373e-05/0.1083, allocations: 80.14 kB / 434.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.1083, allocations: 12.08 kB / 434.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.718e-05/0.1084, allocations: 9.719 kB / 434.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1085, allocations: 318.8 kB / 435 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.929e-06/0.1085, allocations: 4 kB / 435 MB, free: 12.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-06/0.1085, allocations: 4 kB / 435 MB, free: 12.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.225e-05/0.1085, allocations: 8.797 kB / 435 MB, free: 12.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1085, allocations: 0 / 435 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.126e-05/0.1086, allocations: 45.69 kB / 435.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.1086, allocations: 4 kB / 435.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.1086, allocations: 0 / 435.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1086, allocations: 0 / 435.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.929e-05/0.1086, allocations: 4 kB / 435.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.1086, allocations: 0 / 435.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.1087, allocations: 3.938 kB / 435.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.1087, allocations: 0 / 435.1 MB, free: 12.53 MB / 366.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.367e-05/0.1087, allocations: 114 kB / 435.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.145e-05/0.1087, allocations: 4 kB / 435.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.654e-05/0.1088, allocations: 15.12 kB / 435.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1088, allocations: 0 / 435.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1088, allocations: 0 / 435.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.1088, allocations: 0 / 435.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.1089, allocations: 153.6 kB / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1089, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.095e-06/0.1089, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1089, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.1089, allocations: 4 kB / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1089, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1089, allocations: 4 kB / 435.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.657e-05/0.109, allocations: 61.06 kB / 435.4 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.109, allocations: 77.11 kB / 435.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.109, allocations: 0 / 435.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.248e-05/0.109, allocations: 7.938 kB / 435.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.27e-05/0.1091, allocations: 0 / 435.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.1091, allocations: 4 kB / 435.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.315e-05/0.1091, allocations: 91.23 kB / 435.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1091, allocations: 0 / 435.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000422/0.1095, allocations: 151.5 kB / 435.7 MB, free: 11.75 MB / 366.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.00131/0.1108, allocations: 0.977 MB / 436.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.702e-05/0.1109, allocations: 7.938 kB / 436.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1109, allocations: 0 / 436.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.175e-06/0.1109, allocations: 3.984 kB / 436.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.111, allocations: 6.391 kB / 436.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.1122, allocations: 1.165 MB / 437.9 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.1126, allocations: 0.6729 MB / 438.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.384e-05/0.1126, allocations: 7.984 kB / 438.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.1126, allocations: 15.42 kB / 438.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1126, allocations: 0 / 438.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.1428, allocations: 4.386 MB / 443 MB, free: 4.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.856/7.999, allocations: 6.875 kB / 443 MB, free: 4.555 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.517148844024632]