Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.761/1.761, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009917/0.0009913, allocations: 105.4 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4461/0.4461, allocations: 45.22 MB / 394.6 MB, free: 31.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002829/0.0002829, allocations: 11.98 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4659/0.4662, allocations: 63.23 MB / 0.5193 GB, free: 43.72 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.223/8.69, allocations: 2.767 GB / 3.286 GB, free: 137.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003506/8.69, allocations: 89.98 kB / 3.286 GB, free: 137.9 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.766/10.46, allocations: 417.7 MB / 3.694 GB, free: 69.39 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.757e-06/10.46, allocations: 0 / 3.694 GB, free: 69.39 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.658e-05/10.46, allocations: 10.59 kB / 3.694 GB, free: 69.39 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.007764/10.46, allocations: 1.588 MB / 3.695 GB, free: 68.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/10.46, allocations: 11.69 kB / 3.695 GB, free: 68.7 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/10.46, allocations: 83.11 kB / 3.695 GB, free: 68.66 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002075/10.47, allocations: 253.1 kB / 3.696 GB, free: 68.63 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/10.47, allocations: 423.9 kB / 3.696 GB, free: 68.42 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/10.47, allocations: 32.33 kB / 3.696 GB, free: 68.41 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-05/10.47, allocations: 41.38 kB / 3.696 GB, free: 68.41 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/10.47, allocations: 0.6982 MB / 3.697 GB, free: 68.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/10.47, allocations: 0 / 3.697 GB, free: 68.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/10.47, allocations: 19.12 kB / 3.697 GB, free: 68.23 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/10.47, allocations: 17.53 kB / 3.697 GB, free: 68.23 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/10.47, allocations: 0.5892 MB / 3.697 GB, free: 68.23 MB / 0.5417 GB 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.003819/10.47, allocations: 3.238 MB / 3.701 GB, free: 65.95 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/10.48, allocations: 422.5 kB / 3.701 GB, free: 65.93 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1121/10.59, allocations: 61.81 MB / 3.761 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.808e-05/10.59, allocations: 33.44 kB / 3.761 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=27): time 4.598e-06/10.59, allocations: 0 / 3.761 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of matching and sorting (n=27): time 0.003406/10.59, allocations: 0.8896 MB / 3.762 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/10.59, allocations: 105.9 kB / 3.762 GB, free: 25.17 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/10.59, allocations: 355.8 kB / 3.763 GB, free: 25.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/10.59, allocations: 31.45 kB / 3.763 GB, free: 25.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/10.59, allocations: 260.2 kB / 3.763 GB, free: 24.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.275e-05/10.59, allocations: 91.38 kB / 3.763 GB, free: 24.84 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/10.59, allocations: 9.469 kB / 3.763 GB, free: 24.84 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001125/10.59, allocations: 352.1 kB / 3.763 GB, free: 24.53 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/10.59, allocations: 138.4 kB / 3.764 GB, free: 24.52 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/10.59, allocations: 291.9 kB / 3.764 GB, free: 24.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/10.59, allocations: 178.1 kB / 3.764 GB, free: 24.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/10.59, allocations: 0 / 3.764 GB, free: 24.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001063/10.59, allocations: 0.5007 MB / 3.765 GB, free: 24.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002812/10.6, allocations: 2.011 MB / 3.766 GB, free: 38.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/10.6, allocations: 7.969 kB / 3.767 GB, free: 38.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/10.6, allocations: 341 kB / 3.767 GB, free: 38.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/10.6, allocations: 96.64 kB / 3.767 GB, free: 38.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007976/10.6, allocations: 0.5991 MB / 3.768 GB, free: 37.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008085/10.6, allocations: 71.11 kB / 3.768 GB, free: 37.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.196e-05/10.6, allocations: 24.53 kB / 3.768 GB, free: 37.56 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/10.6, allocations: 3.5 kB / 3.768 GB, free: 37.56 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001109/10.6, allocations: 430.8 kB / 3.768 GB, free: 37.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/10.6, allocations: 3.906 kB / 3.768 GB, free: 37.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/10.6, allocations: 16.62 kB / 3.768 GB, free: 37.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/10.6, allocations: 113.9 kB / 3.768 GB, free: 37.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/10.6, allocations: 9.5 kB / 3.768 GB, free: 37.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005555/10.61, allocations: 68.03 kB / 3.768 GB, free: 37.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.986e-05/10.61, allocations: 25.03 kB / 3.768 GB, free: 37.53 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (45): * Single equations (assignments): 44 * 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.0004734/10.61, allocations: 250.6 kB / 3.768 GB, free: 37.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/10.61, allocations: 43.81 kB / 3.769 GB, free: 37.32 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003002/10.61, allocations: 1.9 MB / 3.77 GB, free: 37.08 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.282e-05/10.61, allocations: 27.48 kB / 3.77 GB, free: 37.08 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/10.61, allocations: 0 / 3.77 GB, free: 37.08 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/10.61, allocations: 2.734 kB / 3.77 GB, free: 37.08 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/10.61, allocations: 0.9617 MB / 3.771 GB, free: 36.83 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/10.61, allocations: 0 / 3.771 GB, free: 36.83 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/10.61, allocations: 78.58 kB / 3.771 GB, free: 36.82 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/10.61, allocations: 0.6375 MB / 3.772 GB, free: 36.77 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/10.61, allocations: 15.98 kB / 3.772 GB, free: 36.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008473/10.61, allocations: 1.003 MB / 3.773 GB, free: 36.24 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/10.61, allocations: 4.062 kB / 3.773 GB, free: 36.23 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/10.61, allocations: 1.284 MB / 3.774 GB, free: 35.98 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/10.62, allocations: 253.7 kB / 3.775 GB, free: 35.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.596e-05/10.62, allocations: 10.98 kB / 3.775 GB, free: 35.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/10.62, allocations: 36.61 kB / 3.775 GB, free: 35.81 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-05/10.62, allocations: 29.52 kB / 3.775 GB, free: 35.81 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/10.62, allocations: 11.45 kB / 3.775 GB, free: 35.81 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004604/10.62, allocations: 378.2 kB / 3.775 GB, free: 35.72 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.61e-07/10.62, allocations: 0 / 3.775 GB, free: 35.72 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006719/10.62, allocations: 1.218 MB / 3.776 GB, free: 35.54 MB / 0.5573 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 (30): * Single equations (assignments): 23 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008633/10.63, allocations: 3.203 MB / 3.779 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001722/10.63, allocations: 0.7921 MB / 3.78 GB, free: 34.47 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/10.63, allocations: 0 / 3.78 GB, free: 34.47 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005828/10.63, allocations: 482.3 kB / 3.781 GB, free: 34.46 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/10.64, allocations: 231.6 kB / 3.781 GB, free: 34.45 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007955/10.64, allocations: 7.283 MB / 3.788 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/10.64, allocations: 0.9899 MB / 3.789 GB, free: 28.82 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007806/10.64, allocations: 457.1 kB / 3.789 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000297/10.64, allocations: 264.4 kB / 3.79 GB, free: 28.79 MB / 0.5573 GB Notification: Performance of SimCode: time 2.515e-06/10.64, allocations: 0 / 3.79 GB, free: 28.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08235/10.73, allocations: 45.65 MB / 3.834 GB, free: 21.29 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/10.73, allocations: 264.1 kB / 3.834 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.043/14.77, allocations: 0 / 3.834 GB, free: 20.95 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat does not exist to compare? outputFormat=mat