Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01507/0.01507, allocations: 165.5 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.71/1.71, allocations: 170.8 MB / 186.6 MB, free: 1.141 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001966/0.001966, allocations: 103.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.465/0.465, allocations: 38.06 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004797/0.0004798, allocations: 12 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1229, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.926/8.049, allocations: 2.485 GB / 2.887 GB, free: 52.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/8.049, allocations: 85.33 kB / 2.887 GB, free: 52.21 MB / 426.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 1.999/10.05, allocations: 390.5 MB / 3.269 GB, free: 6.309 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.964e-06/10.05, allocations: 0 / 3.269 GB, free: 6.309 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.461e-05/10.05, allocations: 12 kB / 3.269 GB, free: 6.297 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.007581/10.06, allocations: 1.556 MB / 3.27 GB, free: 4.707 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/10.06, allocations: 8.031 kB / 3.27 GB, free: 4.699 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002474/10.06, allocations: 86.47 kB / 3.27 GB, free: 4.605 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003404/10.06, allocations: 271.1 kB / 3.271 GB, free: 4.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/10.06, allocations: 469.7 kB / 3.271 GB, free: 3.848 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.671e-05/10.06, allocations: 37 kB / 3.271 GB, free: 3.809 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.48e-05/10.06, allocations: 40 kB / 3.271 GB, free: 3.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/10.06, allocations: 0.6915 MB / 3.272 GB, free: 3.031 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/10.06, allocations: 0 / 3.272 GB, free: 3.031 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.983e-05/10.06, allocations: 16.34 kB / 3.272 GB, free: 3.016 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.583e-05/10.06, allocations: 15.95 kB / 3.272 GB, free: 3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003156/10.07, allocations: 0.6087 MB / 3.273 GB, free: 2.391 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3502/10.42, allocations: 2.851 MB / 3.275 GB, free: 40.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/10.42, allocations: 457.2 kB / 3.276 GB, free: 40.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3656/10.79, allocations: 95.71 MB / 3.369 GB, free: 21.51 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.115e-05/10.79, allocations: 39.22 kB / 3.369 GB, free: 21.47 MB / 474.7 MB Notification: Performance of pre-optimization done (n=30): time 3.466e-06/10.79, allocations: 3.125 kB / 3.369 GB, free: 21.47 MB / 474.7 MB Notification: Performance of matching and sorting (n=30): time 0.004523/10.79, allocations: 0.8985 MB / 3.37 GB, free: 21.32 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/10.79, allocations: 106.3 kB / 3.37 GB, free: 21.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005088/10.79, allocations: 311.8 kB / 3.371 GB, free: 21.09 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/10.79, allocations: 32.27 kB / 3.371 GB, free: 21.06 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/10.79, allocations: 264.6 kB / 3.371 GB, free: 20.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/10.79, allocations: 105.3 kB / 3.371 GB, free: 20.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.528e-05/10.79, allocations: 6.312 kB / 3.371 GB, free: 20.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/10.79, allocations: 355.5 kB / 3.371 GB, free: 20.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/10.79, allocations: 135.2 kB / 3.371 GB, free: 20.56 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006481/10.79, allocations: 280.3 kB / 3.372 GB, free: 20.38 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000605/10.79, allocations: 166.3 kB / 3.372 GB, free: 20.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/10.79, allocations: 3.688 kB / 3.372 GB, free: 20.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001689/10.8, allocations: 0.4965 MB / 3.372 GB, free: 20.31 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007591/10.8, allocations: 1.742 MB / 3.374 GB, free: 18.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/10.8, allocations: 6.625 kB / 3.374 GB, free: 18.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003074/10.8, allocations: 204.3 kB / 3.374 GB, free: 18.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007423/10.8, allocations: 99.59 kB / 3.374 GB, free: 18.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008015/10.8, allocations: 0.5855 MB / 3.375 GB, free: 17.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007269/10.8, allocations: 64.92 kB / 3.375 GB, free: 17.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.693e-05/10.8, allocations: 22.91 kB / 3.375 GB, free: 17.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/10.8, allocations: 3.25 kB / 3.375 GB, free: 17.93 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001383/10.8, allocations: 412 kB / 3.375 GB, free: 17.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/10.8, allocations: 3.781 kB / 3.375 GB, free: 17.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/10.8, allocations: 7.656 kB / 3.375 GB, free: 17.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007081/10.8, allocations: 116.2 kB / 3.375 GB, free: 17.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/10.8, allocations: 10.44 kB / 3.375 GB, free: 17.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006288/10.8, allocations: 53.3 kB / 3.376 GB, free: 17.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/10.81, allocations: 24.92 kB / 3.376 GB, free: 17.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004584/10.81, allocations: 255.1 kB / 3.376 GB, free: 17.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/10.81, allocations: 41.47 kB / 3.376 GB, free: 17.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/10.81, allocations: 1.991 MB / 3.378 GB, free: 17.47 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.672e-05/10.81, allocations: 27.91 kB / 3.378 GB, free: 17.47 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/10.81, allocations: 3.875 kB / 3.378 GB, free: 17.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/10.81, allocations: 0 / 3.378 GB, free: 17.47 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/10.81, allocations: 0.9894 MB / 3.379 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/10.81, allocations: 5.672 kB / 3.379 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/10.81, allocations: 68.27 kB / 3.379 GB, free: 17.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/10.81, allocations: 0.572 MB / 3.379 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/10.81, allocations: 13.88 kB / 3.379 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/10.81, allocations: 1.002 MB / 3.38 GB, free: 16.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/10.81, allocations: 0 / 3.38 GB, free: 16.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/10.82, allocations: 1.296 MB / 3.382 GB, free: 16.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004684/10.82, allocations: 240.4 kB / 3.382 GB, free: 16.26 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.852e-05/10.82, allocations: 14.2 kB / 3.382 GB, free: 16.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005009/10.82, allocations: 35.77 kB / 3.382 GB, free: 16.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/10.82, allocations: 33.38 kB / 3.382 GB, free: 16.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/10.82, allocations: 10.53 kB / 3.382 GB, free: 16.25 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005163/10.82, allocations: 307.6 kB / 3.382 GB, free: 16.16 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.61e-07/10.82, allocations: 2.062 kB / 3.382 GB, free: 16.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006048/10.82, allocations: 1.2 MB / 3.383 GB, free: 16.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01316/10.84, allocations: 3.158 MB / 3.387 GB, free: 31.28 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002541/10.84, allocations: 0.7789 MB / 3.387 GB, free: 31.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/10.84, allocations: 7.844 kB / 3.387 GB, free: 31.26 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009562/10.84, allocations: 483.4 kB / 3.388 GB, free: 31.25 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/10.84, allocations: 203.5 kB / 3.388 GB, free: 31.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8021/11.65, allocations: 155.2 MB / 3.54 GB, free: 80.63 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005063/11.65, allocations: 1.002 MB / 3.541 GB, free: 79.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001363/11.65, allocations: 0.5214 MB / 3.541 GB, free: 79.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/11.65, allocations: 278.9 kB / 3.541 GB, free: 79.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/11.65, allocations: 1.203 kB / 3.541 GB, free: 79.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/11.76, allocations: 44.21 MB / 3.584 GB, free: 76.76 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000322/11.76, allocations: 248.9 kB / 3.585 GB, free: 76.43 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.363/16.12, allocations: 6.156 kB / 3.585 GB, free: 76.43 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat