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.001445/0.001445, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.0016/0.0016, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.345/1.345, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001448/0.001448, allocations: 47.92 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2304, allocations: 53.36 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002198/0.2326, allocations: 1.207 MB / 433.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003315/0.2359, allocations: 2.196 MB / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.911e-05/0.2359, allocations: 0 / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.2359, allocations: 0 / 435.3 MB, free: 3.469 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.001134/0.2371, allocations: 474.5 kB / 435.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.314e-05/0.2371, allocations: 8 kB / 435.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.996e-05/0.2372, allocations: 11.92 kB / 435.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.514e-05/0.2372, allocations: 3.984 kB / 435.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.074e-05/0.2372, allocations: 4 kB / 435.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.2373, allocations: 15.86 kB / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.156e-06/0.2373, allocations: 0 / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007784/0.2381, allocations: 0.5229 MB / 436.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.2381, allocations: 0 / 436.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.2382, allocations: 7.984 kB / 436.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005127/0.2387, allocations: 379.5 kB / 436.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2387, allocations: 4 kB / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2387, allocations: 4 kB / 436.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.2387, allocations: 0 / 436.7 MB, free: 2.055 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.0004545/0.2391, allocations: 349.4 kB / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2392, allocations: 8.031 kB / 437.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.579e-05/0.2392, allocations: 79.41 kB / 437.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.412e-05/0.2393, allocations: 106 kB / 437.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.153e-05/0.2393, allocations: 84.17 kB / 437.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.2395, allocations: 189.8 kB / 437.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.261e-05/0.2396, allocations: 154.7 kB / 437.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.2396, allocations: 154.5 kB / 437.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.506e-05/0.2397, allocations: 105 kB / 437.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.318e-05/0.2397, allocations: 75.28 kB / 438 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.2398, allocations: 158.6 kB / 438.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.989e-05/0.2399, allocations: 150.6 kB / 438.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.971e-05/0.2399, allocations: 154.5 kB / 438.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.2402, allocations: 417 kB / 438.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.406e-05/0.2403, allocations: 177.1 kB / 439 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.851e-05/0.2404, allocations: 88.14 kB / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.2404, allocations: 75.28 kB / 439.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/0.2406, allocations: 43.36 kB / 439.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.2406, allocations: 0 / 439.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000124/0.2407, allocations: 33.81 kB / 439.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.2407, allocations: 59.34 kB / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.74e-05/0.2408, allocations: 101.9 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.2408, allocations: 25.7 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/0.2409, allocations: 88.12 kB / 439.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.243e-05/0.2409, allocations: 7.891 kB / 439.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.603e-05/0.2409, allocations: 13.72 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.241, allocations: 310.8 kB / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.2411, allocations: 4 kB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.148e-06/0.2411, allocations: 0 / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.544e-05/0.2411, allocations: 16.8 kB / 439.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2411, allocations: 0 / 439.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.455e-05/0.2411, allocations: 37.69 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.2412, allocations: 4 kB / 439.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.2412, allocations: 3.938 kB / 439.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.2412, allocations: 0 / 439.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.732e-05/0.2412, allocations: 0 / 439.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-06/0.2412, allocations: 8.031 kB / 439.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.576e-05/0.2412, allocations: 0 / 439.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-06/0.2412, allocations: 4 kB / 439.9 MB, free: 14.63 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.72e-05/0.2413, allocations: 113.7 kB / 440 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.208e-06/0.2413, allocations: 0 / 440 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.678e-05/0.2413, allocations: 15.09 kB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2413, allocations: 0 / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.2413, allocations: 0 / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2413, allocations: 0 / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.2415, allocations: 128.7 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2415, allocations: 3.984 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.025e-06/0.2415, allocations: 0 / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.2415, allocations: 0 / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.2415, allocations: 0 / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.2415, allocations: 0 / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2415, allocations: 0 / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.151e-05/0.2415, allocations: 61.08 kB / 440.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-06/0.2415, allocations: 7.969 kB / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.2416, allocations: 3.984 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.619e-05/0.2416, allocations: 8 kB / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.624e-06/0.2416, allocations: 3.938 kB / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-06/0.2416, allocations: 0 / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.578e-05/0.2416, allocations: 87.45 kB / 440.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2416, allocations: 0 / 440.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003972/0.242, allocations: 147.5 kB / 440.5 MB, free: 13.99 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.001333/0.2434, allocations: 0.9872 MB / 441.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.108e-05/0.2434, allocations: 15.94 kB / 441.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2434, allocations: 0 / 441.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.664e-06/0.2435, allocations: 4 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.2436, allocations: 2.578 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.2447, allocations: 1.162 MB / 442.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.245, allocations: 0.6729 MB / 443.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.103e-05/0.245, allocations: 11.92 kB / 443.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.245, allocations: 15.44 kB / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.245, allocations: 0 / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.2729, allocations: 4.483 MB / 447.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.63, allocations: 12.73 kB / 447.9 MB, free: 6.703 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: 12.928471229970455]