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.001453/0.001453, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001495/0.001495, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.308/1.308, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 47.92 kB / 371.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2194, allocations: 52.18 MB / 423.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002231/0.2216, allocations: 1.199 MB / 424.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.2249, allocations: 2.075 MB / 426.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.435e-05/0.2249, allocations: 0 / 426.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.2249, allocations: 3.984 kB / 426.7 MB, free: 11.34 MB / 334.1 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.00123/0.2262, allocations: 438.6 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.331e-05/0.2262, allocations: 3.984 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.031e-05/0.2262, allocations: 11.94 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.336e-05/0.2263, allocations: 8 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.841e-05/0.2263, allocations: 3.938 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.2264, allocations: 11.92 kB / 427.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.2264, allocations: 4 kB / 427.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007197/0.2271, allocations: 483.5 kB / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.063e-05/0.2271, allocations: 0 / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.123e-05/0.2272, allocations: 3.938 kB / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.2276, allocations: 340.1 kB / 427.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2276, allocations: 0 / 427.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2276, allocations: 0 / 427.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.2276, allocations: 0 / 427.9 MB, free: 10.06 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.0004267/0.2281, allocations: 345.5 kB / 428.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2281, allocations: 12.03 kB / 428.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.141e-05/0.2281, allocations: 75.47 kB / 428.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.16e-05/0.2282, allocations: 106 kB / 428.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.2283, allocations: 80.16 kB / 428.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.2284, allocations: 193.8 kB / 428.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.507e-05/0.2285, allocations: 158.7 kB / 428.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.2285, allocations: 154.5 kB / 429 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.471e-05/0.2286, allocations: 105 kB / 429.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.2287, allocations: 75.28 kB / 429.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/0.2287, allocations: 154.5 kB / 429.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.386e-05/0.2288, allocations: 150.6 kB / 429.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.463e-05/0.2289, allocations: 154.6 kB / 429.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002814/0.2291, allocations: 421 kB / 430.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.727e-05/0.2292, allocations: 173.1 kB / 430.2 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.014e-05/0.2293, allocations: 84.14 kB / 430.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.2293, allocations: 83.22 kB / 430.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.2295, allocations: 43.41 kB / 430.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.733e-06/0.2295, allocations: 0 / 430.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001178/0.2296, allocations: 33.7 kB / 430.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.2296, allocations: 55.34 kB / 430.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.571e-05/0.2297, allocations: 105.9 kB / 430.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.2297, allocations: 33.7 kB / 430.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.815e-05/0.2298, allocations: 80.14 kB / 430.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.179e-05/0.2298, allocations: 4 kB / 430.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.2298, allocations: 9.719 kB / 430.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.2299, allocations: 314.8 kB / 431.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.794e-06/0.23, allocations: 0 / 431.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.468e-06/0.23, allocations: 0 / 431.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.839e-05/0.23, allocations: 20.84 kB / 431.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.23, allocations: 0 / 431.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.596e-05/0.23, allocations: 33.7 kB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.2301, allocations: 4 kB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2301, allocations: 7.938 kB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2301, allocations: 0 / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.628e-05/0.2301, allocations: 0 / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.2301, allocations: 0 / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.2301, allocations: 0 / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.2301, allocations: 0 / 431.1 MB, free: 6.652 MB / 334.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.287e-05/0.2302, allocations: 121.8 kB / 431.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.2302, allocations: 3.953 kB / 431.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.089e-05/0.2302, allocations: 3.156 kB / 431.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2302, allocations: 0 / 431.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2302, allocations: 0 / 431.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2302, allocations: 4 kB / 431.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.2304, allocations: 128.7 kB / 431.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2304, allocations: 3.938 kB / 431.4 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-06/0.2304, allocations: 0 / 431.4 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.2304, allocations: 8 kB / 431.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-06/0.2304, allocations: 0 / 431.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.2304, allocations: 0 / 431.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2304, allocations: 0 / 431.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.766e-05/0.2304, allocations: 69 kB / 431.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-06/0.2304, allocations: 0 / 431.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.062e-05/0.2305, allocations: 0 / 431.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.192e-05/0.2305, allocations: 0 / 431.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-06/0.2305, allocations: 7.969 kB / 431.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-06/0.2305, allocations: 0 / 431.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.723e-05/0.2305, allocations: 95.44 kB / 431.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2305, allocations: 0 / 431.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004173/0.2309, allocations: 123.6 kB / 431.7 MB, free: 6.023 MB / 334.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.001361/0.2323, allocations: 0.976 MB / 432.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.518e-05/0.2324, allocations: 7.938 kB / 432.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2324, allocations: 4.062 kB / 432.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.112e-05/0.2324, allocations: 8 kB / 432.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.2325, allocations: 3.984 kB / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.2336, allocations: 1.158 MB / 433.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.2339, allocations: 0.6727 MB / 434.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.994e-05/0.2339, allocations: 11.98 kB / 434.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.037e-05/0.2339, allocations: 11.44 kB / 434.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2339, allocations: 7.938 kB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.2597, allocations: 4.06 MB / 438.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.69, allocations: 9.234 kB / 438.6 MB, free: 15.18 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/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: 12.97465180902509]