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.001611/0.001611, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.00215/0.00215, allocations: 214.3 kB / 23.75 MB, free: 4.672 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.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 60.09 kB / 377.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2428, allocations: 53.41 MB / 431.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00249/0.2453, allocations: 1.204 MB / 432.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003781/0.2491, allocations: 2.199 MB / 434.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.789e-05/0.2491, allocations: 3.938 kB / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.2491, allocations: 0 / 434.6 MB, free: 3.402 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.001411/0.2505, allocations: 490.1 kB / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.771e-05/0.2506, allocations: 0 / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.135e-05/0.2506, allocations: 7.938 kB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.211e-05/0.2507, allocations: 4 kB / 435.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.2507, allocations: 8 kB / 435.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002369/0.2509, allocations: 15.91 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.689e-06/0.2509, allocations: 0 / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009674/0.2519, allocations: 0.519 MB / 435.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.245e-05/0.2519, allocations: 0 / 435.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.351e-05/0.2519, allocations: 4 kB / 435.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.2527, allocations: 383.5 kB / 436 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2527, allocations: 0 / 436 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2527, allocations: 0 / 436 MB, free: 1.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.2527, allocations: 0 / 436 MB, free: 1.996 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.000572/0.2533, allocations: 345.4 kB / 436.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.2533, allocations: 12.03 kB / 436.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.043e-05/0.2534, allocations: 110 kB / 436.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/0.2535, allocations: 80.17 kB / 436.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.2536, allocations: 193.8 kB / 436.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.19e-05/0.2537, allocations: 150.9 kB / 436.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-05/0.2538, allocations: 150.9 kB / 437 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.411e-05/0.2539, allocations: 105.1 kB / 437.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.483e-05/0.2539, allocations: 75.28 kB / 437.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.254, allocations: 158.5 kB / 437.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-05/0.254, allocations: 154.6 kB / 437.5 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.055e-05/0.2541, allocations: 158.5 kB / 437.6 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.2544, allocations: 413 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.954e-05/0.2545, allocations: 169.1 kB / 438.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.341e-05/0.2546, allocations: 88.12 kB / 438.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.2546, allocations: 75.28 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.2548, allocations: 55.22 kB / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.004e-06/0.2548, allocations: 0 / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001345/0.2549, allocations: 37.69 kB / 438.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.255, allocations: 55.53 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.2551, allocations: 97.86 kB / 438.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.2551, allocations: 25.7 kB / 438.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/0.2551, allocations: 88.14 kB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.2551, allocations: 7.938 kB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.2552, allocations: 17.64 kB / 438.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2553, allocations: 310.8 kB / 439 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.2553, allocations: 4 kB / 439 MB, free: 14.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.168e-05/0.2553, allocations: 11.94 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.566e-05/0.2553, allocations: 12.86 kB / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2553, allocations: 0 / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.858e-05/0.2554, allocations: 33.64 kB / 439.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2554, allocations: 6.5 kB / 439.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2554, allocations: 3.984 kB / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.2554, allocations: 0 / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.972e-05/0.2555, allocations: 4 kB / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.2555, allocations: 0 / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.066e-05/0.2555, allocations: 4.094 kB / 439.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-06/0.2555, allocations: 0 / 439.1 MB, free: 14.64 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.525e-05/0.2556, allocations: 109.8 kB / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.2556, allocations: 7.938 kB / 439.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.914e-05/0.2556, allocations: 15.05 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2556, allocations: 0 / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2556, allocations: 0 / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2556, allocations: 3.984 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.2557, allocations: 116.8 kB / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2557, allocations: 3.938 kB / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.667e-06/0.2558, allocations: 4 kB / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2558, allocations: 0 / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.2558, allocations: 7.984 kB / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2558, allocations: 0 / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2558, allocations: 0 / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.864e-05/0.2558, allocations: 53.14 kB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-06/0.2558, allocations: 11.88 kB / 439.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.2559, allocations: 4.031 kB / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.656e-05/0.2559, allocations: 3.984 kB / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.829e-06/0.2559, allocations: 0 / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.2559, allocations: 0 / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.707e-05/0.2559, allocations: 83.28 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2559, allocations: 3.938 kB / 439.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004844/0.2564, allocations: 147.5 kB / 439.7 MB, free: 14.01 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.001445/0.2579, allocations: 0.9765 MB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.875e-05/0.2579, allocations: 8 kB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2579, allocations: 4.062 kB / 440.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.152e-05/0.2579, allocations: 7.938 kB / 440.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.2581, allocations: 0 / 440.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.2592, allocations: 1.158 MB / 441.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.2595, allocations: 0.6729 MB / 442.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.414e-05/0.2595, allocations: 11.98 kB / 442.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.605e-05/0.2596, allocations: 11.44 kB / 442.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2596, allocations: 4 kB / 442.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03333/0.2929, allocations: 4.458 MB / 447 MB, free: 6.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.88, allocations: 10.58 kB / 447 MB, free: 6.707 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.215218184050173]