Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006907/0.0006907, allocations: 93.64 kB / 16.65 MB, free: 6.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007525/0.0007524, allocations: 177.5 kB / 17.56 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.0002311, allocations: 8 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08152, allocations: 50.41 MB / 351.9 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.0009924/0.08256, allocations: 0.9235 MB / 352.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.08494, allocations: 1.951 MB / 354.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.088e-05/0.08496, allocations: 0 / 354.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.152e-05/0.08499, allocations: 3.938 kB / 354.8 MB, free: 496 kB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.0007736/0.08577, allocations: 331.2 kB / 355.1 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.726e-05/0.08579, allocations: 7.984 kB / 355.1 MB, free: 156 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 3.22e-05/0.08583, allocations: 7.938 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.591e-05/0.08586, allocations: 0 / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.035e-05/0.08589, allocations: 11.92 kB / 355.2 MB, free: 136 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.76e-05/0.08598, allocations: 11.98 kB / 355.2 MB, free: 124 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.183e-06/0.08599, allocations: 0 / 355.2 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005176/0.08652, allocations: 423.6 kB / 355.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.08654, allocations: 3.984 kB / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.08657, allocations: 33.58 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.08697, allocations: 339.5 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.08698, allocations: 0 / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.08699, allocations: 4 kB / 356 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.087, allocations: 0 / 356 MB, free: 15.33 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.0003516/0.08735, allocations: 395.4 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.08739, allocations: 8.031 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.479e-05/0.08745, allocations: 114 kB / 356.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.08751, allocations: 80.22 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.08764, allocations: 243.9 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.0877, allocations: 154.9 kB / 356.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.08775, allocations: 162.4 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.615e-05/0.0878, allocations: 101 kB / 357.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.08783, allocations: 79.28 kB / 357.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-05/0.08788, allocations: 150.6 kB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.636e-05/0.08794, allocations: 158.5 kB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.972e-05/0.08798, allocations: 150.6 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002281/0.08821, allocations: 442 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.061e-05/0.08829, allocations: 185 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.475e-05/0.08832, allocations: 80.14 kB / 358.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.08836, allocations: 75.28 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.869e-05/0.08846, allocations: 47.39 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.814e-06/0.08847, allocations: 8 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001032/0.08858, allocations: 41.62 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.08862, allocations: 55.34 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.426e-05/0.08869, allocations: 97.86 kB / 358.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-06/0.08871, allocations: 25.7 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/0.08874, allocations: 84.14 kB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.05e-05/0.08876, allocations: 3.906 kB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.08879, allocations: 13.66 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.08888, allocations: 319 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.384e-06/0.0889, allocations: 4 kB / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.447e-06/0.0889, allocations: 0 / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.926e-05/0.08893, allocations: 12.8 kB / 359.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.08894, allocations: 7.938 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.412e-05/0.08899, allocations: 29.7 kB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.089, allocations: 4 kB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.08901, allocations: 0 / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.794e-06/0.08902, allocations: 96 / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.694e-05/0.08904, allocations: 11.98 kB / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.08905, allocations: 0 / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.08907, allocations: 0 / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-06/0.08908, allocations: 0 / 359.2 MB, free: 11.81 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.513e-05/0.08915, allocations: 109.8 kB / 359.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/0.08916, allocations: 4 kB / 359.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.171e-05/0.08919, allocations: 11.12 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.08919, allocations: 0 / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.0892, allocations: 0 / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.08921, allocations: 4 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.906e-05/0.08931, allocations: 153.6 kB / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.08932, allocations: 0 / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-06/0.08933, allocations: 3.938 kB / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.08933, allocations: 0 / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-06/0.08934, allocations: 0 / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.08935, allocations: 3.984 kB / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.08935, allocations: 4 kB / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.599e-05/0.08941, allocations: 61.08 kB / 359.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.08945, allocations: 85 kB / 359.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.08947, allocations: 4 kB / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.328e-05/0.08949, allocations: 0 / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.604e-06/0.0895, allocations: 3.938 kB / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.08951, allocations: 192 / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.14e-05/0.08955, allocations: 87.27 kB / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08956, allocations: 0 / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.08988, allocations: 128 kB / 359.9 MB, free: 11.06 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.000968/0.09086, allocations: 0.9754 MB / 360.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.507e-05/0.09091, allocations: 8 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.09092, allocations: 0 / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.592e-06/0.09093, allocations: 4 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.09106, allocations: 0 / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008303/0.09189, allocations: 1.156 MB / 362 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.0921, allocations: 0.677 MB / 362.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.568e-05/0.09214, allocations: 16 kB / 362.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.099e-05/0.09217, allocations: 15.44 kB / 362.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of SimCode: time 2.324e-06/0.09218, allocations: 0 / 362.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01336/0.1055, allocations: 3.69 MB / 366.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.1058, allocations: 250.5 kB / 366.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/1.842, allocations: 0 / 366.7 MB, free: 4.316 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches