Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009557/0.0009557, allocations: 96.33 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2277/0.2277, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.786e-05/1.808e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1666, allocations: 61.91 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.668/7.835, allocations: 2.765 GB / 3.26 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/7.835, allocations: 82.78 kB / 3.26 GB, free: 116.2 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.599/9.434, allocations: 412.3 MB / 3.662 GB, free: 79.55 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.904e-06/9.434, allocations: 0 / 3.662 GB, free: 79.55 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.915e-05/9.434, allocations: 15.25 kB / 3.662 GB, free: 79.55 MB / 0.5261 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.005118/9.44, allocations: 1.529 MB / 3.664 GB, free: 78.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/9.44, allocations: 15.08 kB / 3.664 GB, free: 78.82 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001767/9.441, allocations: 247.7 kB / 3.664 GB, free: 78.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006196/9.442, allocations: 427.6 kB / 3.664 GB, free: 78.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/9.442, allocations: 14 kB / 3.664 GB, free: 78.57 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/9.442, allocations: 22.62 kB / 3.664 GB, free: 78.57 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000513/9.443, allocations: 353.5 kB / 3.665 GB, free: 78.57 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000602/9.443, allocations: 483.8 kB / 3.665 GB, free: 78.39 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/9.443, allocations: 0 / 3.665 GB, free: 78.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/9.443, allocations: 7.266 kB / 3.665 GB, free: 78.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/9.443, allocations: 7.25 kB / 3.665 GB, free: 78.39 MB / 0.5261 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.05688/9.5, allocations: 35.54 MB / 3.7 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/9.501, allocations: 212.8 kB / 3.7 GB, free: 56.38 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/9.501, allocations: 109.4 kB / 3.7 GB, free: 56.37 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0978/9.599, allocations: 55.74 MB / 3.755 GB, free: 37.13 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/9.599, allocations: 37.66 kB / 3.755 GB, free: 37.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/9.599, allocations: 0 / 3.755 GB, free: 37.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22): time 0.002158/9.601, allocations: 0.5289 MB / 3.755 GB, free: 37.03 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/9.601, allocations: 113.3 kB / 3.755 GB, free: 36.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/9.601, allocations: 291 kB / 3.756 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/9.602, allocations: 25.7 kB / 3.756 GB, free: 36.76 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/9.602, allocations: 279.3 kB / 3.756 GB, free: 36.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/9.602, allocations: 80.19 kB / 3.756 GB, free: 36.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/9.602, allocations: 0 / 3.756 GB, free: 36.56 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001469/9.602, allocations: 344.7 kB / 3.756 GB, free: 36.24 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/9.602, allocations: 90.12 kB / 3.756 GB, free: 36.24 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/9.602, allocations: 256.9 kB / 3.757 GB, free: 36.03 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009316/9.603, allocations: 237.8 kB / 3.757 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/9.603, allocations: 0 / 3.757 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001304/9.605, allocations: 0.4942 MB / 3.757 GB, free: 35.96 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007321/9.605, allocations: 2.009 MB / 3.759 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/9.605, allocations: 7.656 kB / 3.759 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/9.606, allocations: 47.11 kB / 3.759 GB, free: 33.85 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/9.606, allocations: 109 kB / 3.76 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008499/9.607, allocations: 0.6551 MB / 3.76 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/9.607, allocations: 77.72 kB / 3.76 GB, free: 33.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/9.607, allocations: 23 kB / 3.76 GB, free: 33.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/9.607, allocations: 3.25 kB / 3.76 GB, free: 33.3 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008471/9.608, allocations: 354.7 kB / 3.761 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/9.608, allocations: 7.766 kB / 3.761 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.775e-06/9.608, allocations: 11.16 kB / 3.761 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/9.609, allocations: 113 kB / 3.761 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/9.609, allocations: 17.81 kB / 3.761 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/9.609, allocations: 57.14 kB / 3.761 GB, free: 33.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/9.609, allocations: 25.25 kB / 3.761 GB, free: 33.27 MB / 0.5417 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 (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 (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.0001535/9.609, allocations: 125.7 kB / 3.761 GB, free: 33.15 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001125/9.61, allocations: 348.4 kB / 3.761 GB, free: 33.09 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.967e-05/9.61, allocations: 32.41 kB / 3.761 GB, free: 33.08 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/9.612, allocations: 1.467 MB / 3.763 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.992e-05/9.612, allocations: 19.44 kB / 3.763 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/9.612, allocations: 5.172 kB / 3.763 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/9.612, allocations: 6.516 kB / 3.763 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/9.614, allocations: 2.041 MB / 3.765 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/9.614, allocations: 0 / 3.765 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/9.615, allocations: 58.47 kB / 3.765 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005796/9.615, allocations: 0.5906 MB / 3.765 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/9.615, allocations: 6.766 kB / 3.765 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009685/9.616, allocations: 1.101 MB / 3.766 GB, free: 31.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/9.616, allocations: 3.375 kB / 3.767 GB, free: 31.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/9.618, allocations: 1.179 MB / 3.768 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/9.618, allocations: 187.1 kB / 3.768 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/9.618, allocations: 3.656 kB / 3.768 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/9.618, allocations: 29.78 kB / 3.768 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/9.618, allocations: 24.05 kB / 3.768 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/9.618, allocations: 14.39 kB / 3.768 GB, free: 31.49 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002188/9.618, allocations: 214.6 kB / 3.768 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.283e-06/9.618, allocations: 4 kB / 3.768 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005341/9.624, allocations: 1.174 MB / 3.769 GB, free: 31.21 MB / 0.5417 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 (24): * Single equations (assignments): 18 * 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.009871/9.634, allocations: 3.309 MB / 3.772 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001239/9.635, allocations: 0.6187 MB / 3.773 GB, free: 29.99 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/9.635, allocations: 0.5 kB / 3.773 GB, free: 29.99 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003902/9.635, allocations: 394.3 kB / 3.773 GB, free: 29.97 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009457/9.636, allocations: 149.8 kB / 3.774 GB, free: 29.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00472/9.641, allocations: 1.381 MB / 3.775 GB, free: 29.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/9.642, allocations: 0.9388 MB / 3.776 GB, free: 28.33 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008057/9.642, allocations: 0.5329 MB / 3.776 GB, free: 28.03 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/9.643, allocations: 218.3 kB / 3.777 GB, free: 28 MB / 0.5417 GB Notification: Performance of SimCode: time 1.032e-06/9.643, allocations: 0 / 3.777 GB, free: 28 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06939/9.712, allocations: 37.51 MB / 3.813 GB, free: 3.664 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/9.712, allocations: 183.2 kB / 3.813 GB, free: 3.469 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.262/12.97, allocations: 0 / 3.813 GB, free: 3.469 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat does not exist to compare? outputFormat=mat