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.001264/0.001264, allocations: 106.7 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 60.84 kB / 306.3 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09865, allocations: 50.53 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002233/0.1009, allocations: 1.255 MB / 358.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003159/0.1041, allocations: 2.135 MB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.431e-05/0.1041, allocations: 0 / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.758e-05/0.1042, allocations: 0 / 360.3 MB, free: 11 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.0009955/0.1052, allocations: 362.9 kB / 360.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.904e-05/0.1052, allocations: 0 / 360.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 3.964e-05/0.1052, allocations: 7.938 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.39e-05/0.1053, allocations: 4 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.083e-05/0.1053, allocations: 7.938 kB / 360.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.1054, allocations: 11.97 kB / 360.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.1054, allocations: 3.938 kB / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006792/0.1061, allocations: 471.5 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.069e-05/0.1061, allocations: 0 / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.727e-05/0.1062, allocations: 11.92 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.1067, allocations: 375.4 kB / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1067, allocations: 0 / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1067, allocations: 0 / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1067, allocations: 0 / 361.5 MB, free: 9.777 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.0004765/0.1072, allocations: 423.6 kB / 361.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1072, allocations: 12.03 kB / 361.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.558e-05/0.1073, allocations: 110 kB / 362 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/0.1074, allocations: 80.2 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.1075, allocations: 243.7 kB / 362.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.1077, allocations: 154.9 kB / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.1077, allocations: 154.5 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.349e-05/0.1078, allocations: 101 kB / 362.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.1078, allocations: 79.28 kB / 362.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.308e-05/0.1079, allocations: 162.4 kB / 363 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.095e-05/0.108, allocations: 150.6 kB / 363.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.399e-05/0.108, allocations: 158.6 kB / 363.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002922/0.1083, allocations: 438 kB / 363.7 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.854e-05/0.1084, allocations: 181.1 kB / 363.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.683e-05/0.1085, allocations: 80.14 kB / 364 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1085, allocations: 83.2 kB / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.1086, allocations: 43.33 kB / 364.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.154e-06/0.1087, allocations: 0 / 364.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001287/0.1088, allocations: 37.69 kB / 364.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.1088, allocations: 59.34 kB / 364.2 MB, free: 6.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.167e-05/0.1089, allocations: 97.86 kB / 364.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.109, allocations: 25.7 kB / 364.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.575e-05/0.109, allocations: 84.14 kB / 364.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.109, allocations: 3.984 kB / 364.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.1091, allocations: 13.72 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1092, allocations: 315 kB / 364.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.1092, allocations: 0 / 364.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.692e-06/0.1092, allocations: 4 kB / 364.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.167e-05/0.1092, allocations: 8.859 kB / 364.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.1093, allocations: 3.938 kB / 364.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.696e-05/0.1093, allocations: 37.69 kB / 364.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1093, allocations: 7.938 kB / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1094, allocations: 0 / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1094, allocations: 96 / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.281e-05/0.1094, allocations: 4 kB / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1094, allocations: 0 / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.741e-05/0.1094, allocations: 0 / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.1094, allocations: 4 kB / 364.8 MB, free: 6.242 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 0.0001174/0.1096, allocations: 114.8 kB / 364.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.1096, allocations: 0 / 364.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.946e-05/0.1096, allocations: 15.08 kB / 364.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1096, allocations: 7.922 kB / 364.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1096, allocations: 0 / 364.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1096, allocations: 4 kB / 364.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.1098, allocations: 149.6 kB / 365.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1098, allocations: 0 / 365.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-06/0.1098, allocations: 3.984 kB / 365.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1098, allocations: 192 / 365.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.1098, allocations: 4 kB / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1098, allocations: 0 / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1098, allocations: 0 / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.087e-05/0.1099, allocations: 80.84 kB / 365.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/0.1099, allocations: 77.11 kB / 365.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.11, allocations: 3.984 kB / 365.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.253e-05/0.11, allocations: 0 / 365.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.74e-05/0.11, allocations: 4 kB / 365.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-06/0.11, allocations: 0 / 365.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.485e-05/0.1101, allocations: 83.28 kB / 365.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1101, allocations: 0 / 365.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004918/0.1106, allocations: 144 kB / 365.5 MB, free: 5.465 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.001279/0.1118, allocations: 0.9921 MB / 366.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.742e-05/0.1119, allocations: 7.938 kB / 366.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.112, allocations: 4 kB / 366.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.36e-06/0.112, allocations: 0 / 366.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001665/0.1121, allocations: 4 kB / 366.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.1134, allocations: 1.16 MB / 367.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.1137, allocations: 0.677 MB / 368.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.017e-05/0.1137, allocations: 7.984 kB / 368.3 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.1138, allocations: 15.44 kB / 368.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1138, allocations: 3.938 kB / 368.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1777/0.2915, allocations: 4.175 MB / 372.5 MB, free: 17.81 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/0.2917, allocations: 243.5 kB / 372.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.196, allocations: 4.812 kB / 372.7 MB, free: 17.55 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