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.001334/0.001334, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2575, allocations: 50.55 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002419/0.2599, allocations: 1.203 MB / 409.9 MB, free: 344 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003185/0.2631, allocations: 2.073 MB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.132e-05/0.2632, allocations: 3.938 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.2632, allocations: 7.875 kB / 412 MB, free: 14.24 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.001157/0.2644, allocations: 462.6 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.235e-05/0.2644, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.345e-05/0.2644, allocations: 15.92 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.78e-05/0.2645, allocations: 7.984 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.897e-05/0.2645, allocations: 0 / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.2648, allocations: 8 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.2649, allocations: 3.938 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007831/0.2656, allocations: 0.515 MB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/0.2657, allocations: 3.984 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.2657, allocations: 4 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005285/0.2662, allocations: 378.1 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.2662, allocations: 0 / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2662, allocations: 4 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.2663, allocations: 4 kB / 413.4 MB, free: 12.86 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.0004792/0.2667, allocations: 422.5 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2668, allocations: 8.031 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.543e-05/0.2669, allocations: 110 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.891e-05/0.2669, allocations: 80.17 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.2671, allocations: 247.6 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-05/0.2672, allocations: 154.9 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.818e-05/0.2673, allocations: 158.5 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.991e-05/0.2673, allocations: 101 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.451e-05/0.2674, allocations: 79.28 kB / 414.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.395e-05/0.2674, allocations: 150.6 kB / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.592e-05/0.2675, allocations: 150.6 kB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.983e-05/0.2676, allocations: 158.5 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003012/0.2679, allocations: 449.9 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.111e-05/0.268, allocations: 169.1 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.032e-05/0.268, allocations: 84.19 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.2681, allocations: 79.28 kB / 415.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.2682, allocations: 51.34 kB / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.214e-06/0.2682, allocations: 0 / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001148/0.2683, allocations: 33.7 kB / 416 MB, free: 10.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.2684, allocations: 51.41 kB / 416.1 MB, free: 9.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.706e-05/0.2685, allocations: 105.8 kB / 416.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.2685, allocations: 29.83 kB / 416.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.858e-05/0.2686, allocations: 88.08 kB / 416.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.2686, allocations: 3.953 kB / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.2686, allocations: 13.66 kB / 416.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.2687, allocations: 318.8 kB / 416.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-06/0.2688, allocations: 4 kB / 416.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.2688, allocations: 3.984 kB / 416.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.311e-05/0.2688, allocations: 12.92 kB / 416.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2688, allocations: 3.938 kB / 416.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.404e-05/0.2689, allocations: 29.7 kB / 416.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.2689, allocations: 4 kB / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2689, allocations: 0 / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2689, allocations: 4 kB / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.756e-05/0.2689, allocations: 0 / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2689, allocations: 0 / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.269, allocations: 3.938 kB / 416.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-06/0.269, allocations: 0 / 416.7 MB, free: 9.316 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 8.461e-05/0.2691, allocations: 121.8 kB / 416.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.2691, allocations: 4 kB / 416.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.2691, allocations: 7.078 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2691, allocations: 0 / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2691, allocations: 0 / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2691, allocations: 4 kB / 416.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.2693, allocations: 157.6 kB / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2693, allocations: 0 / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.2693, allocations: 0 / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.2693, allocations: 0 / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-06/0.2693, allocations: 4 kB / 417 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2693, allocations: 7.984 kB / 417 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2693, allocations: 0 / 417 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.205e-05/0.2694, allocations: 57.06 kB / 417 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.2694, allocations: 77.11 kB / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.2694, allocations: 4 kB / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.589e-05/0.2695, allocations: 7.938 kB / 417.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-06/0.2695, allocations: 4.031 kB / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.2695, allocations: 0 / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.808e-05/0.2695, allocations: 83.27 kB / 417.2 MB, free: 8.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2695, allocations: 3.938 kB / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004229/0.27, allocations: 147.5 kB / 417.4 MB, free: 8.539 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.001341/0.2713, allocations: 0.996 MB / 418.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.933e-05/0.2714, allocations: 7.938 kB / 418.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2714, allocations: 4.062 kB / 418.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.313e-06/0.2714, allocations: 4 kB / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.2716, allocations: 0 / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.2726, allocations: 1.154 MB / 419.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.2729, allocations: 0.6768 MB / 420.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.268e-05/0.2729, allocations: 16.05 kB / 420.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.273, allocations: 11.44 kB / 420.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of SimCode: time 2.164e-06/0.273, allocations: 4 kB / 420.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.3033, allocations: 4.343 MB / 424.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.289, allocations: 8 kB / 424.6 MB, free: 1.332 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.csv","/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) Reference file matches