Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestPressure,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",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.002296/0.002296, allocations: 179.5 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 86.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2868/0.2868, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.379e-05/4.394e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1351, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.407/8.542, allocations: 2.76 GB / 3.233 GB, free: 82.28 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/8.543, allocations: 86.06 kB / 3.233 GB, free: 82.25 MB / 0.5105 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 2.111/10.65, allocations: 412 MB / 3.635 GB, free: 65.99 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.084e-06/10.65, allocations: 2.688 kB / 3.635 GB, free: 65.99 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.733e-05/10.65, allocations: 11.41 kB / 3.635 GB, free: 65.99 MB / 0.5105 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.006285/10.66, allocations: 1.532 MB / 3.637 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/10.66, allocations: 9.25 kB / 3.637 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/10.66, allocations: 75.88 kB / 3.637 GB, free: 64.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002533/10.66, allocations: 248.8 kB / 3.637 GB, free: 64.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/10.66, allocations: 418.1 kB / 3.638 GB, free: 64.65 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.749e-05/10.66, allocations: 32.69 kB / 3.638 GB, free: 64.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.097e-05/10.66, allocations: 36.75 kB / 3.638 GB, free: 64.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/10.67, allocations: 0.6883 MB / 3.638 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/10.67, allocations: 3.938 kB / 3.638 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.108e-05/10.67, allocations: 21.75 kB / 3.638 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/10.67, allocations: 13.77 kB / 3.638 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001803/10.67, allocations: 0.5368 MB / 3.639 GB, free: 64.09 MB / 0.5105 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.004872/10.67, allocations: 3.251 MB / 3.642 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/10.68, allocations: 410.8 kB / 3.643 GB, free: 61.28 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/10.68, allocations: 131.5 kB / 3.643 GB, free: 61.22 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1731/10.85, allocations: 55.74 MB / 3.697 GB, free: 18.21 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/10.85, allocations: 46.17 kB / 3.697 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=27): time 3.507e-06/10.85, allocations: 0 / 3.697 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=27): time 0.003022/10.85, allocations: 0.6354 MB / 3.698 GB, free: 17.65 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/10.85, allocations: 110.8 kB / 3.698 GB, free: 17.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005547/10.85, allocations: 347.7 kB / 3.698 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.3e-05/10.85, allocations: 33.7 kB / 3.698 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/10.85, allocations: 295.7 kB / 3.698 GB, free: 16.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.551e-05/10.85, allocations: 95.09 kB / 3.699 GB, free: 16.79 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/10.85, allocations: 8 kB / 3.699 GB, free: 16.79 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.083e-05/10.85, allocations: 329.6 kB / 3.699 GB, free: 16.46 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/10.85, allocations: 96.58 kB / 3.699 GB, free: 16.37 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003679/10.85, allocations: 261.9 kB / 3.699 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/10.85, allocations: 142 kB / 3.699 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/10.85, allocations: 0 / 3.699 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001059/10.85, allocations: 405.3 kB / 3.7 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004041/10.86, allocations: 2.011 MB / 3.702 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/10.86, allocations: 7.469 kB / 3.702 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004848/10.86, allocations: 332.4 kB / 3.702 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007346/10.86, allocations: 102.6 kB / 3.702 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006358/10.86, allocations: 0.5983 MB / 3.703 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007796/10.86, allocations: 75.19 kB / 3.703 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.879e-05/10.86, allocations: 27.83 kB / 3.703 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/10.86, allocations: 4 kB / 3.703 GB, free: 12.35 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008483/10.86, allocations: 341.9 kB / 3.703 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/10.86, allocations: 7.938 kB / 3.703 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/10.86, allocations: 8 kB / 3.703 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/10.86, allocations: 115.3 kB / 3.703 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/10.86, allocations: 8 kB / 3.703 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/10.86, allocations: 63.44 kB / 3.703 GB, free: 11.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.958e-05/10.86, allocations: 27.69 kB / 3.703 GB, free: 11.85 MB / 0.5105 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 () * 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.0001848/10.87, allocations: 128.9 kB / 3.704 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/10.87, allocations: 51.44 kB / 3.704 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/10.87, allocations: 1.862 MB / 3.705 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.023e-05/10.87, allocations: 23.95 kB / 3.705 GB, free: 9.934 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/10.87, allocations: 4 kB / 3.705 GB, free: 9.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/10.87, allocations: 3.984 kB / 3.705 GB, free: 9.926 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/10.87, allocations: 0.9544 MB / 3.706 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/10.87, allocations: 0 / 3.706 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005385/10.87, allocations: 75.89 kB / 3.706 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/10.87, allocations: 0.767 MB / 3.707 GB, free: 8.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-05/10.87, allocations: 8 kB / 3.707 GB, free: 8.082 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009257/10.87, allocations: 0.9988 MB / 3.708 GB, free: 7.055 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/10.87, allocations: 0 / 3.708 GB, free: 7.055 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/10.88, allocations: 1.207 MB / 3.709 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/10.88, allocations: 255.5 kB / 3.71 GB, free: 5.551 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/10.88, allocations: 7.953 kB / 3.71 GB, free: 5.543 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005621/10.88, allocations: 43.81 kB / 3.71 GB, free: 5.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/10.88, allocations: 35.89 kB / 3.71 GB, free: 5.465 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/10.88, allocations: 15.98 kB / 3.71 GB, free: 5.449 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005993/10.88, allocations: 369.6 kB / 3.71 GB, free: 5.09 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.02e-07/10.88, allocations: 0 / 3.71 GB, free: 5.09 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00576/10.88, allocations: 1.198 MB / 3.711 GB, free: 3.891 MB / 0.5105 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 () * 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.01219/10.9, allocations: 3.111 MB / 3.714 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001849/10.9, allocations: 0.6822 MB / 3.715 GB, free: 292 kB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/10.9, allocations: 0 / 3.715 GB, free: 292 kB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008225/10.9, allocations: 448.8 kB / 3.715 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/10.9, allocations: 224.3 kB / 3.716 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00675/10.91, allocations: 1.63 MB / 3.717 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007974/10.91, allocations: 1.003 MB / 3.718 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005412/10.91, allocations: 267.3 kB / 3.718 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of SimCode: time 9.92e-07/10.91, allocations: 0 / 3.718 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.375/15.28, allocations: 34.81 MB / 3.752 GB, free: 75.08 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat does not exist to compare? outputFormat=mat