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.001057/0.001057, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 246.9 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.91 kB / 358.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2551, allocations: 50.54 MB / 408.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00193/0.2571, allocations: 1.203 MB / 409.9 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002904/0.26, allocations: 2.077 MB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.214e-05/0.26, allocations: 3.938 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.98e-05/0.2601, allocations: 3.938 kB / 412 MB, free: 14.38 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.001207/0.2613, allocations: 469.9 kB / 412.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.387e-05/0.2613, allocations: 8 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.791e-05/0.2614, allocations: 7.938 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.095e-05/0.2614, allocations: 0 / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.034e-05/0.2614, allocations: 4 kB / 412.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.2617, allocations: 19.91 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.2617, allocations: 0 / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007268/0.2624, allocations: 0.5189 MB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.2625, allocations: 0 / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.965e-05/0.2625, allocations: 4 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000569/0.2631, allocations: 378.1 kB / 413.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2631, allocations: 0 / 413.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2631, allocations: 0 / 413.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.2631, allocations: 0 / 413.4 MB, free: 12.99 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.0005032/0.2636, allocations: 426.5 kB / 413.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2637, allocations: 12.03 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.345e-05/0.2638, allocations: 114 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.835e-05/0.2638, allocations: 80.17 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.264, allocations: 247.6 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.869e-05/0.2641, allocations: 150.9 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.2642, allocations: 154.5 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.42e-05/0.2643, allocations: 105 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.2643, allocations: 79.28 kB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.918e-05/0.2644, allocations: 150.6 kB / 414.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.534e-05/0.2644, allocations: 150.6 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.312e-05/0.2645, allocations: 162.5 kB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003298/0.2648, allocations: 449.9 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.701e-05/0.2649, allocations: 169.1 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.772e-05/0.265, allocations: 88.19 kB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.265, allocations: 75.28 kB / 416 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.2652, allocations: 51.34 kB / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.205e-06/0.2653, allocations: 0 / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001492/0.2654, allocations: 33.7 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.2655, allocations: 51.41 kB / 416.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.516e-05/0.2656, allocations: 105.8 kB / 416.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2656, allocations: 29.64 kB / 416.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.2656, allocations: 80.14 kB / 416.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.2657, allocations: 3.953 kB / 416.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.2657, allocations: 17.84 kB / 416.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.2658, allocations: 318.8 kB / 416.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.2659, allocations: 0 / 416.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.618e-06/0.2659, allocations: 3.938 kB / 416.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.171e-05/0.2659, allocations: 8.859 kB / 416.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.2659, allocations: 3.938 kB / 416.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.737e-05/0.266, allocations: 37.69 kB / 416.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.266, allocations: 8.094 kB / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.266, allocations: 0 / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.266, allocations: 0 / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.64e-05/0.2661, allocations: 0 / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.2661, allocations: 0 / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.892e-05/0.2661, allocations: 3.938 kB / 416.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.2661, allocations: 4 kB / 416.7 MB, free: 9.441 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.979e-05/0.2662, allocations: 117.7 kB / 416.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.2662, allocations: 0 / 416.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.484e-05/0.2663, allocations: 19.06 kB / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2663, allocations: 0 / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.2663, allocations: 0 / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2663, allocations: 4 kB / 416.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.2664, allocations: 153.6 kB / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2665, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-06/0.2665, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.2665, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.2665, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2665, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2665, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.368e-05/0.2666, allocations: 69.06 kB / 417.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.2666, allocations: 77.11 kB / 417.1 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.2666, allocations: 0 / 417.1 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.391e-05/0.2667, allocations: 3.938 kB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.2667, allocations: 4 kB / 417.1 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.2667, allocations: 0 / 417.1 MB, free: 8.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.964e-05/0.2667, allocations: 91.2 kB / 417.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2668, allocations: 4.031 kB / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.2672, allocations: 147.5 kB / 417.4 MB, free: 8.664 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.00117/0.2684, allocations: 0.9845 MB / 418.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.877e-05/0.2685, allocations: 7.938 kB / 418.4 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2685, allocations: 0 / 418.4 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.693e-06/0.2685, allocations: 3.984 kB / 418.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.2686, allocations: 4 kB / 418.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009562/0.2696, allocations: 1.161 MB / 419.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.2698, allocations: 0.6729 MB / 420.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.371e-05/0.2699, allocations: 12.05 kB / 420.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.475e-05/0.2699, allocations: 15.42 kB / 420.2 MB, free: 5.723 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2699, allocations: 3.938 kB / 420.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.2936, allocations: 4.343 MB / 424.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.615/7.909, allocations: 10.69 kB / 424.6 MB, free: 1.461 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.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