Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00154/0.00154, allocations: 177.6 kB / 8.003 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.946/1.946, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008603/0.0008604, allocations: 86.62 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2419/0.2419, allocations: 43.5 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.354e-05/1.357e-05, allocations: 0 / 418.3 MB, free: 28.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1418, allocations: 58.86 MB / 477.2 MB, free: 1.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.373/7.515, allocations: 2.76 GB / 3.226 GB, free: 157.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/7.515, allocations: 87.55 kB / 3.226 GB, free: 157.3 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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.431/8.946, allocations: 397.3 MB / 3.614 GB, free: 60.53 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.653e-06/8.946, allocations: 0.8438 kB / 3.614 GB, free: 60.53 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.781e-05/8.946, allocations: 10.75 kB / 3.614 GB, free: 60.53 MB / 0.4948 GB 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.006312/8.953, allocations: 1.539 MB / 3.616 GB, free: 60 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/8.953, allocations: 13.81 kB / 3.616 GB, free: 60 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/8.955, allocations: 299.1 kB / 3.616 GB, free: 59.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008756/8.956, allocations: 451.5 kB / 3.616 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/8.956, allocations: 20.77 kB / 3.616 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/8.956, allocations: 21.88 kB / 3.616 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006838/8.957, allocations: 366.8 kB / 3.617 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007186/8.958, allocations: 477.4 kB / 3.617 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/8.958, allocations: 0 / 3.617 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/8.958, allocations: 10.55 kB / 3.617 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/8.958, allocations: 14.34 kB / 3.617 GB, free: 59.59 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.08395/9.042, allocations: 51.24 MB / 3.667 GB, free: 28.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005801/9.042, allocations: 263.1 kB / 3.667 GB, free: 28.13 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/9.042, allocations: 125.5 kB / 3.668 GB, free: 28.12 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1043/9.147, allocations: 55.74 MB / 3.722 GB, free: 24.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.505e-05/9.147, allocations: 41.88 kB / 3.722 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.114e-06/9.147, allocations: 0 / 3.722 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002322/9.149, allocations: 0.6159 MB / 3.723 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/9.149, allocations: 114.7 kB / 3.723 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/9.15, allocations: 300.6 kB / 3.723 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/9.15, allocations: 25.7 kB / 3.723 GB, free: 24.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/9.15, allocations: 276.1 kB / 3.723 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/9.15, allocations: 80.39 kB / 3.723 GB, free: 24 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.946e-05/9.15, allocations: 0 / 3.723 GB, free: 24 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001258/9.15, allocations: 343 kB / 3.724 GB, free: 23.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/9.15, allocations: 102.6 kB / 3.724 GB, free: 23.69 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/9.15, allocations: 221.9 kB / 3.724 GB, free: 23.55 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/9.151, allocations: 258.7 kB / 3.724 GB, free: 23.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/9.151, allocations: 3.938 kB / 3.724 GB, free: 23.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001347/9.153, allocations: 0.5064 MB / 3.725 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005604/9.153, allocations: 1.314 MB / 3.726 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/9.153, allocations: 3.875 kB / 3.726 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/9.154, allocations: 50.66 kB / 3.726 GB, free: 22.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003392/9.154, allocations: 92.72 kB / 3.726 GB, free: 22.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009038/9.155, allocations: 0.6665 MB / 3.727 GB, free: 21.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/9.155, allocations: 80.38 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/9.155, allocations: 23.14 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/9.155, allocations: 3 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009027/9.156, allocations: 361 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/9.156, allocations: 2.219 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.923e-06/9.156, allocations: 7.656 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003556/9.157, allocations: 111 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/9.157, allocations: 4.875 kB / 3.727 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/9.157, allocations: 62.17 kB / 3.727 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/9.157, allocations: 21.7 kB / 3.727 GB, free: 21.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001379/9.157, allocations: 119.5 kB / 3.728 GB, free: 21.44 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001187/9.158, allocations: 411.3 kB / 3.728 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/9.158, allocations: 40.19 kB / 3.728 GB, free: 21.35 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/9.16, allocations: 1.584 MB / 3.73 GB, free: 21.17 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.21e-05/9.161, allocations: 24.55 kB / 3.73 GB, free: 21.17 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/9.161, allocations: 7.391 kB / 3.73 GB, free: 21.17 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/9.161, allocations: 3.953 kB / 3.73 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/9.163, allocations: 2.186 MB / 3.732 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/9.163, allocations: 0 / 3.732 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/9.163, allocations: 54.28 kB / 3.732 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005552/9.164, allocations: 0.5824 MB / 3.732 GB, free: 20.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/9.164, allocations: 9.562 kB / 3.732 GB, free: 20.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009938/9.165, allocations: 1.115 MB / 3.733 GB, free: 20.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/9.165, allocations: 0 / 3.733 GB, free: 20.22 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/9.166, allocations: 1.217 MB / 3.735 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002284/9.166, allocations: 184.6 kB / 3.735 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.739e-05/9.166, allocations: 3.719 kB / 3.735 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/9.167, allocations: 33.83 kB / 3.735 GB, free: 19.78 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/9.167, allocations: 28.28 kB / 3.735 GB, free: 19.78 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/9.167, allocations: 18.44 kB / 3.735 GB, free: 19.78 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002516/9.167, allocations: 222.8 kB / 3.735 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/9.167, allocations: 0 / 3.735 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005375/9.173, allocations: 1.171 MB / 3.736 GB, free: 19.51 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.009225/9.182, allocations: 3.32 MB / 3.739 GB, free: 18.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001135/9.183, allocations: 0.6373 MB / 3.74 GB, free: 18.31 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/9.183, allocations: 2.562 kB / 3.74 GB, free: 18.31 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003868/9.183, allocations: 400.5 kB / 3.74 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/9.184, allocations: 175.6 kB / 3.741 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004481/9.189, allocations: 1.44 MB / 3.742 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/9.189, allocations: 0.9509 MB / 3.743 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008498/9.19, allocations: 0.6577 MB / 3.744 GB, free: 17.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/9.191, allocations: 231 kB / 3.744 GB, free: 17.06 MB / 0.5261 GB Notification: Performance of SimCode: time 7.21e-07/9.191, allocations: 0 / 3.744 GB, free: 17.06 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06781/9.258, allocations: 38.07 MB / 3.781 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001444/9.259, allocations: 180.4 kB / 3.781 GB, free: 5.066 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.352/12.61, allocations: 0 / 3.781 GB, free: 5.066 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat