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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000823/0.0008231, allocations: 92.77 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009519/0.0009519, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001988/0.0001988, allocations: 8 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.08537, allocations: 51.51 MB / 359.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001042/0.08644, allocations: 0.9316 MB / 360.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.08919, allocations: 2.073 MB / 362.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.218e-05/0.08922, allocations: 4 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.08924, allocations: 3.984 kB / 362.4 MB, free: 10.18 MB / 302.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.0008463/0.09009, allocations: 362.6 kB / 362.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.802e-05/0.09012, allocations: 4 kB / 362.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 3.51e-05/0.09016, allocations: 11.94 kB / 362.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.666e-05/0.09019, allocations: 0 / 362.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.735e-05/0.09021, allocations: 4 kB / 362.7 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.09033, allocations: 15.92 kB / 362.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.09034, allocations: 0 / 362.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005657/0.09091, allocations: 467.5 kB / 363.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.716e-06/0.09093, allocations: 0 / 363.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.801e-05/0.09097, allocations: 33.69 kB / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004362/0.09141, allocations: 383.3 kB / 363.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.09142, allocations: 0 / 363.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09143, allocations: 0 / 363.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.09144, allocations: 0 / 363.6 MB, free: 8.922 MB / 302.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.0003643/0.0918, allocations: 419.6 kB / 364 MB, free: 8.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.09185, allocations: 12.03 kB / 364 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.707e-05/0.0919, allocations: 106 kB / 364.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/0.09196, allocations: 80.2 kB / 364.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.0921, allocations: 247.7 kB / 364.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/0.09214, allocations: 150.9 kB / 364.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.09219, allocations: 154.5 kB / 364.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.56e-05/0.09224, allocations: 104.9 kB / 364.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.09226, allocations: 75.28 kB / 364.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.427e-05/0.09231, allocations: 154.5 kB / 365.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.271e-05/0.09236, allocations: 154.6 kB / 365.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.983e-05/0.0924, allocations: 154.6 kB / 365.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002202/0.09263, allocations: 442 kB / 365.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.288e-05/0.09271, allocations: 177 kB / 366 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.575e-05/0.09274, allocations: 88.14 kB / 366.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.09278, allocations: 79.27 kB / 366.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.729e-05/0.09287, allocations: 39.42 kB / 366.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.784e-06/0.09288, allocations: 0 / 366.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001022/0.09298, allocations: 41.53 kB / 366.2 MB, free: 6.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.09303, allocations: 51.53 kB / 366.3 MB, free: 6.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.644e-05/0.0931, allocations: 113.7 kB / 366.4 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.09312, allocations: 25.7 kB / 366.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.05e-05/0.09315, allocations: 80.14 kB / 366.5 MB, free: 5.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.066e-05/0.09317, allocations: 4 kB / 366.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.09319, allocations: 13.7 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.09329, allocations: 314.8 kB / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-06/0.0933, allocations: 0 / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.717e-06/0.09331, allocations: 0 / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.882e-05/0.09333, allocations: 12.92 kB / 366.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.09334, allocations: 3.938 kB / 366.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.424e-05/0.09339, allocations: 37.64 kB / 366.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.09341, allocations: 8 kB / 366.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.09342, allocations: 3.984 kB / 366.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.515e-06/0.09343, allocations: 0 / 366.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.458e-05/0.09345, allocations: 0 / 366.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.09346, allocations: 3.984 kB / 366.9 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.09348, allocations: 192 / 366.9 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.09349, allocations: 4.031 kB / 366.9 MB, free: 5.391 MB / 302.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 6.685e-05/0.09356, allocations: 122.8 kB / 367 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.723e-06/0.09357, allocations: 0 / 367 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.038e-05/0.09359, allocations: 7.078 kB / 367 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.0936, allocations: 0 / 367 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.09361, allocations: 8 kB / 367 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.09362, allocations: 3.984 kB / 367 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.668e-05/0.09372, allocations: 149.6 kB / 367.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.09373, allocations: 0 / 367.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.105e-06/0.09374, allocations: 4 kB / 367.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.09374, allocations: 4 kB / 367.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.09375, allocations: 3.984 kB / 367.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.09376, allocations: 0 / 367.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.09376, allocations: 3.938 kB / 367.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.557e-05/0.09382, allocations: 61.08 kB / 367.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.09387, allocations: 85 kB / 367.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.09388, allocations: 0 / 367.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.197e-05/0.0939, allocations: 4.031 kB / 367.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-06/0.09391, allocations: 0 / 367.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.09392, allocations: 7.938 kB / 367.3 MB, free: 4.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.34e-05/0.09396, allocations: 79.28 kB / 367.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09396, allocations: 0 / 367.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.09433, allocations: 148 kB / 367.6 MB, free: 4.613 MB / 302.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.001002/0.09534, allocations: 0.9876 MB / 368.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.574e-05/0.09539, allocations: 4 kB / 368.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.0954, allocations: 0 / 368.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.404e-06/0.09541, allocations: 4 kB / 368.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.09554, allocations: 10.22 kB / 368.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008478/0.0964, allocations: 1.164 MB / 369.7 MB, free: 2.391 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.0966, allocations: 0.6731 MB / 370.4 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.085e-05/0.09664, allocations: 20.11 kB / 370.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.09668, allocations: 15.42 kB / 370.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09668, allocations: 0 / 370.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1483/0.245, allocations: 4.092 MB / 374.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000139/0.2451, allocations: 240.6 kB / 374.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.062, allocations: 0 / 374.8 MB, free: 16.89 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches