Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001248/0.001248, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 214.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 230.5 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 67.89 kB / 378.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2206, allocations: 53.4 MB / 431.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002108/0.2227, allocations: 1.195 MB / 433.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003174/0.2258, allocations: 2.09 MB / 435.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.024e-05/0.2259, allocations: 0 / 435.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.277e-05/0.2259, allocations: 3.938 kB / 435.2 MB, free: 3.309 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001168/0.227, allocations: 478.5 kB / 435.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.726e-05/0.2271, allocations: 0 / 435.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.137e-05/0.2271, allocations: 15.91 kB / 435.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.697e-05/0.2272, allocations: 4 kB / 435.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.816e-05/0.2272, allocations: 3.938 kB / 435.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.052e-05/0.2273, allocations: 4 kB / 435.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-06/0.2273, allocations: 4 kB / 435.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007278/0.228, allocations: 0.5072 MB / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.062e-05/0.228, allocations: 0 / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.968e-05/0.228, allocations: 7.938 kB / 436.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.2285, allocations: 381.5 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2285, allocations: 0 / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2285, allocations: 0 / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.2285, allocations: 0 / 436.6 MB, free: 1.922 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.0004454/0.229, allocations: 349.4 kB / 436.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.229, allocations: 8.031 kB / 436.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.069e-05/0.2291, allocations: 79.47 kB / 437 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.554e-05/0.2291, allocations: 106 kB / 437.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.2292, allocations: 84.17 kB / 437.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.2294, allocations: 189.8 kB / 437.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.268e-05/0.2294, allocations: 150.9 kB / 437.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.2295, allocations: 158.9 kB / 437.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.943e-05/0.2296, allocations: 104.9 kB / 437.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/0.2296, allocations: 79.28 kB / 437.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.3e-05/0.2297, allocations: 150.6 kB / 438 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.802e-05/0.2297, allocations: 150.6 kB / 438.1 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.538e-05/0.2298, allocations: 154.5 kB / 438.3 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000304/0.2301, allocations: 425 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.357e-05/0.2302, allocations: 173.1 kB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.885e-05/0.2302, allocations: 80.14 kB / 438.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.2303, allocations: 79.22 kB / 439 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001464/0.2304, allocations: 51.34 kB / 439.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.844e-06/0.2304, allocations: 0 / 439.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001228/0.2306, allocations: 33.7 kB / 439.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.2306, allocations: 51.41 kB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.284e-05/0.2307, allocations: 101.8 kB / 439.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2307, allocations: 33.83 kB / 439.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.05e-05/0.2307, allocations: 80.14 kB / 439.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.2308, allocations: 3.953 kB / 439.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/0.2308, allocations: 13.72 kB / 439.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2309, allocations: 318.8 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.166e-06/0.2309, allocations: 0 / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.715e-06/0.2309, allocations: 3.938 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.362e-05/0.231, allocations: 12.84 kB / 439.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.231, allocations: 0 / 439.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.546e-05/0.231, allocations: 37.7 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2311, allocations: 8 kB / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2311, allocations: 3.984 kB / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.2311, allocations: 0 / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.05e-05/0.2311, allocations: 0 / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.2311, allocations: 0 / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.912e-05/0.2311, allocations: 4 kB / 439.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.728e-06/0.2311, allocations: 0 / 439.8 MB, free: 14.5 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.306e-05/0.2312, allocations: 113.8 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.2312, allocations: 3.938 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.2313, allocations: 19.08 kB / 439.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2313, allocations: 0 / 439.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2313, allocations: 3.938 kB / 439.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2313, allocations: 0 / 439.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.2314, allocations: 128.7 kB / 440 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2314, allocations: 0 / 440 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.89e-06/0.2314, allocations: 4 kB / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.2314, allocations: 0 / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.2314, allocations: 0 / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.2314, allocations: 0 / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2314, allocations: 0 / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.423e-05/0.2315, allocations: 65.06 kB / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-06/0.2315, allocations: 4 kB / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.2315, allocations: 4 kB / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.199e-05/0.2315, allocations: 0 / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.2315, allocations: 0 / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.2315, allocations: 0 / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.094e-05/0.2316, allocations: 83.27 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2316, allocations: 3.938 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.232, allocations: 151.5 kB / 440.3 MB, free: 13.86 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.2333, allocations: 0.9922 MB / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.127e-05/0.2334, allocations: 7.938 kB / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2334, allocations: 0 / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.829e-06/0.2334, allocations: 7.922 kB / 441.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.2335, allocations: 17.84 kB / 441.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.2346, allocations: 1.154 MB / 442.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.881e-05/0.2346, allocations: 59.3 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.016e-05/0.2347, allocations: 7.984 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.597e-05/0.2347, allocations: 19.42 kB / 442.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2347, allocations: 0 / 442.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.261, allocations: 4.53 MB / 447.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.83, allocations: 7.062 kB / 447.1 MB, free: 7.105 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.132996711065061]