Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01023/0.01023, allocations: 175.2 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.183/2.183, allocations: 194.5 MB / 210.3 MB, free: 8.578 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002049/0.002049, allocations: 124.6 kB / 255.6 MB, free: 11.2 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2729/0.2729, allocations: 40.01 MB / 340.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007423/0.0007424, allocations: 11.91 kB / 406.3 MB, free: 52.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1165, allocations: 54.88 MB / 461.1 MB, free: 3.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.715/7.831, allocations: 2.596 GB / 3.047 GB, free: 76.37 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/7.832, allocations: 86.5 kB / 3.047 GB, free: 76.32 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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 2.013/9.845, allocations: 400.3 MB / 3.438 GB, free: 58.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.895e-06/9.845, allocations: 3.344 kB / 3.438 GB, free: 58.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.058e-05/9.845, allocations: 14.42 kB / 3.438 GB, free: 58.02 MB / 490.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.006875/9.852, allocations: 1.589 MB / 3.439 GB, free: 57.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/9.852, allocations: 10.97 kB / 3.439 GB, free: 57.07 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/9.852, allocations: 79.22 kB / 3.439 GB, free: 57.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003178/9.856, allocations: 299.9 kB / 3.439 GB, free: 56.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/9.857, allocations: 468.6 kB / 3.44 GB, free: 56.63 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/9.857, allocations: 37.03 kB / 3.44 GB, free: 56.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.638e-05/9.857, allocations: 34.38 kB / 3.44 GB, free: 56.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/9.859, allocations: 0.6936 MB / 3.441 GB, free: 56.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/9.859, allocations: 0 / 3.441 GB, free: 56.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.302e-05/9.859, allocations: 20 kB / 3.441 GB, free: 56.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/9.859, allocations: 11.28 kB / 3.441 GB, free: 56.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/9.862, allocations: 0.6146 MB / 3.441 GB, free: 56.13 MB / 490.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.004329/9.866, allocations: 2.867 MB / 3.444 GB, free: 53.81 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/9.868, allocations: 451.8 kB / 3.445 GB, free: 53.69 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7476/10.62, allocations: 95.8 MB / 3.538 GB, free: 69.87 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/10.62, allocations: 33.06 kB / 3.538 GB, free: 69.83 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 4.157e-06/10.62, allocations: 3.281 kB / 3.538 GB, free: 69.83 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.004497/10.62, allocations: 0.9061 MB / 3.539 GB, free: 69.69 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/10.62, allocations: 106.3 kB / 3.539 GB, free: 69.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004568/10.62, allocations: 306.5 kB / 3.539 GB, free: 69.45 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/10.62, allocations: 35.14 kB / 3.539 GB, free: 69.42 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/10.62, allocations: 268 kB / 3.54 GB, free: 69.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/10.62, allocations: 105.5 kB / 3.54 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/10.62, allocations: 6 kB / 3.54 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.188e-05/10.62, allocations: 348.9 kB / 3.54 GB, free: 68.94 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/10.62, allocations: 136.6 kB / 3.54 GB, free: 68.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/10.62, allocations: 278.7 kB / 3.541 GB, free: 68.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006386/10.62, allocations: 169.2 kB / 3.541 GB, free: 68.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/10.62, allocations: 3.938 kB / 3.541 GB, free: 68.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001668/10.63, allocations: 0.4979 MB / 3.541 GB, free: 68.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004009/10.63, allocations: 1.747 MB / 3.543 GB, free: 66.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/10.63, allocations: 3.031 kB / 3.543 GB, free: 66.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002991/10.63, allocations: 202.5 kB / 3.543 GB, free: 66.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007251/10.63, allocations: 104.5 kB / 3.543 GB, free: 66.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005973/10.63, allocations: 0.5843 MB / 3.544 GB, free: 66.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006762/10.63, allocations: 65.69 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/10.63, allocations: 22.84 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/10.63, allocations: 3.719 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00146/10.63, allocations: 411 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/10.63, allocations: 4.406 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/10.63, allocations: 10.59 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006947/10.63, allocations: 107.8 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/10.63, allocations: 7.719 kB / 3.544 GB, free: 66.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/10.63, allocations: 55.19 kB / 3.544 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.151e-05/10.63, allocations: 27.34 kB / 3.544 GB, free: 66.34 MB / 0.4948 GB 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.0003827/10.63, allocations: 248.4 kB / 3.545 GB, free: 66.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/10.63, allocations: 41.39 kB / 3.545 GB, free: 66.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/10.64, allocations: 1.993 MB / 3.547 GB, free: 65.94 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-05/10.64, allocations: 23.94 kB / 3.547 GB, free: 65.94 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/10.64, allocations: 3.906 kB / 3.547 GB, free: 65.94 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/10.64, allocations: 3.844 kB / 3.547 GB, free: 65.94 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/10.64, allocations: 0.9859 MB / 3.548 GB, free: 65.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/10.64, allocations: 3.953 kB / 3.548 GB, free: 65.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005271/10.64, allocations: 75.66 kB / 3.548 GB, free: 65.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/10.64, allocations: 0.5814 MB / 3.548 GB, free: 65.67 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/10.64, allocations: 14.62 kB / 3.548 GB, free: 65.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008898/10.64, allocations: 0.9898 MB / 3.549 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/10.64, allocations: 1.031 kB / 3.549 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/10.64, allocations: 1.288 MB / 3.551 GB, free: 64.88 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/10.65, allocations: 248.3 kB / 3.551 GB, free: 64.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.645e-05/10.65, allocations: 8.531 kB / 3.551 GB, free: 64.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/10.65, allocations: 35.28 kB / 3.551 GB, free: 64.74 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/10.65, allocations: 32.84 kB / 3.551 GB, free: 64.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/10.65, allocations: 9.5 kB / 3.551 GB, free: 64.74 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004603/10.65, allocations: 304.4 kB / 3.551 GB, free: 64.65 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-07/10.65, allocations: 0 / 3.551 GB, free: 64.65 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005732/10.65, allocations: 1.211 MB / 3.552 GB, free: 64.64 MB / 0.4948 GB 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.01331/10.67, allocations: 3.156 MB / 3.555 GB, free: 63.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002634/10.67, allocations: 0.7881 MB / 3.556 GB, free: 63.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/10.67, allocations: 0 / 3.556 GB, free: 63.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009114/10.67, allocations: 481.4 kB / 3.557 GB, free: 63.79 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/10.67, allocations: 188.5 kB / 3.557 GB, free: 63.79 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7973/11.47, allocations: 157.6 MB / 3.711 GB, free: 76.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005996/11.47, allocations: 0.9974 MB / 3.712 GB, free: 75.46 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001537/11.47, allocations: 0.5243 MB / 3.712 GB, free: 75.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/11.47, allocations: 278.7 kB / 3.712 GB, free: 75.45 MB / 0.4948 GB Notification: Performance of SimCode: time 1.303e-06/11.47, allocations: 2.062 kB / 3.712 GB, free: 75.45 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/11.58, allocations: 44.34 MB / 3.756 GB, free: 74.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002739/11.58, allocations: 265.9 kB / 3.756 GB, free: 74.35 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.62/16.2, allocations: 0 / 3.756 GB, free: 74.35 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat