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.001155/0.001155, allocations: 117.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 208.5 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 59.91 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.271, allocations: 50.53 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002065/0.2731, allocations: 1.203 MB / 409.9 MB, free: 364 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002912/0.276, allocations: 2.077 MB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.241e-05/0.276, allocations: 0 / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.479e-05/0.2761, allocations: 3.938 kB / 412 MB, free: 14.27 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.001082/0.2772, allocations: 466 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.961e-05/0.2772, allocations: 0 / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.749e-05/0.2772, allocations: 19.91 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.69e-05/0.2773, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.919e-05/0.2773, allocations: 8 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.2776, allocations: 4 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.325e-06/0.2776, allocations: 3.938 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006838/0.2783, allocations: 0.5151 MB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.518e-05/0.2783, allocations: 3.984 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.464e-05/0.2784, allocations: 3.938 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004808/0.2789, allocations: 379.4 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2789, allocations: 0 / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2789, allocations: 0 / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.2789, allocations: 0 / 413.4 MB, free: 12.88 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.0004473/0.2793, allocations: 429 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2794, allocations: 8.031 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.439e-05/0.2794, allocations: 106 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.945e-05/0.2795, allocations: 80.22 kB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.2797, allocations: 239.7 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.159e-05/0.2797, allocations: 154.9 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.743e-05/0.2798, allocations: 162.4 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.504e-05/0.2798, allocations: 105 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.2799, allocations: 75.28 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.567e-05/0.2799, allocations: 154.5 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-05/0.28, allocations: 150.6 kB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.101e-05/0.28, allocations: 150.6 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002634/0.2803, allocations: 453.9 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.047e-05/0.2804, allocations: 173 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.073e-05/0.2804, allocations: 84.19 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.2805, allocations: 79.28 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/0.2806, allocations: 59.34 kB / 416 MB, free: 10.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.244e-06/0.2806, allocations: 0 / 416 MB, free: 10.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001191/0.2807, allocations: 33.64 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.2808, allocations: 51.41 kB / 416.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.396e-05/0.2809, allocations: 105.8 kB / 416.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.2809, allocations: 25.7 kB / 416.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.2809, allocations: 84.08 kB / 416.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.281, allocations: 8.031 kB / 416.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.543e-05/0.281, allocations: 13.72 kB / 416.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.953e-05/0.2811, allocations: 318.8 kB / 416.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.815e-06/0.2811, allocations: 0 / 416.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.238e-06/0.2811, allocations: 0 / 416.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.334e-05/0.2811, allocations: 12.8 kB / 416.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2811, allocations: 3.938 kB / 416.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.703e-05/0.2812, allocations: 29.8 kB / 416.7 MB, free: 9.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2812, allocations: 14.81 kB / 416.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2812, allocations: 0 / 416.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.2812, allocations: 0 / 416.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.864e-05/0.2813, allocations: 0 / 416.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2813, allocations: 3.984 kB / 416.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.753e-05/0.2813, allocations: 0 / 416.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.2813, allocations: 0 / 416.7 MB, free: 9.344 MB / 334.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.911e-05/0.2814, allocations: 121.7 kB / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-06/0.2814, allocations: 0 / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.354e-05/0.2814, allocations: 11.08 kB / 416.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2814, allocations: 4 kB / 416.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2814, allocations: 0 / 416.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2815, allocations: 0 / 416.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.2816, allocations: 153.6 kB / 417 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2816, allocations: 4 kB / 417 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-06/0.2816, allocations: 0 / 417 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.2816, allocations: 3.938 kB / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-06/0.2816, allocations: 0 / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.2816, allocations: 0 / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2816, allocations: 0 / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.883e-05/0.2817, allocations: 65.06 kB / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.034e-05/0.2817, allocations: 77.11 kB / 417.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.2817, allocations: 0 / 417.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.444e-05/0.2817, allocations: 4 kB / 417.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.739e-06/0.2818, allocations: 3.984 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.2818, allocations: 4 kB / 417.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.989e-05/0.2818, allocations: 83.31 kB / 417.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2818, allocations: 7.875 kB / 417.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004143/0.2823, allocations: 144 kB / 417.4 MB, free: 8.57 MB / 334.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.001224/0.2835, allocations: 0.9968 MB / 418.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.625e-05/0.2836, allocations: 0 / 418.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2836, allocations: 4 kB / 418.4 MB, free: 7.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-06/0.2836, allocations: 0 / 418.4 MB, free: 7.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.2837, allocations: 4.125 kB / 418.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.2849, allocations: 1.162 MB / 419.5 MB, free: 6.352 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.2852, allocations: 0.6768 MB / 420.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.653e-05/0.2853, allocations: 7.984 kB / 420.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.2853, allocations: 15.38 kB / 420.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of SimCode: time 1.704e-06/0.2853, allocations: 4 kB / 420.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.3084, allocations: 4.341 MB / 424.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/7.74, allocations: 14.44 kB / 424.6 MB, free: 1.363 MB / 334.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