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.001067/0.001067, allocations: 195.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009469/0.000947, allocations: 91.69 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2081/0.2081, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.564e-05, allocations: 4 kB / 460.5 MB, free: 69.89 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1342, allocations: 63.25 MB / 0.5115 GB, free: 6.668 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.301/6.435, allocations: 2.766 GB / 3.278 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/6.436, allocations: 86.88 kB / 3.278 GB, free: 15.5 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.303/7.739, allocations: 416.6 MB / 3.685 GB, free: 44.74 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.082e-06/7.739, allocations: 0 / 3.685 GB, free: 44.74 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.532e-05/7.739, allocations: 15.53 kB / 3.685 GB, free: 44.73 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.004726/7.744, allocations: 1.536 MB / 3.686 GB, free: 43.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/7.744, allocations: 12.03 kB / 3.686 GB, free: 43.15 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.8e-05/7.744, allocations: 74.53 kB / 3.686 GB, free: 43.07 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/7.745, allocations: 263 kB / 3.687 GB, free: 42.81 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005701/7.746, allocations: 423.6 kB / 3.687 GB, free: 42.36 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/7.746, allocations: 28.78 kB / 3.687 GB, free: 42.34 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/7.746, allocations: 39.95 kB / 3.687 GB, free: 42.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/7.747, allocations: 0.6913 MB / 3.688 GB, free: 41.55 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/7.747, allocations: 0 / 3.688 GB, free: 41.55 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/7.747, allocations: 20 kB / 3.688 GB, free: 41.53 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/7.747, allocations: 8 kB / 3.688 GB, free: 41.52 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/7.748, allocations: 0.5375 MB / 3.688 GB, free: 40.99 MB / 0.5417 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.002571/7.751, allocations: 3.245 MB / 3.691 GB, free: 37.54 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009056/7.752, allocations: 407.4 kB / 3.692 GB, free: 37.14 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/7.752, allocations: 131.6 kB / 3.692 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3725/8.125, allocations: 61.99 MB / 3.753 GB, free: 60.63 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/8.125, allocations: 35.53 kB / 3.753 GB, free: 60.59 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=27): time 2.094e-06/8.125, allocations: 3.281 kB / 3.753 GB, free: 60.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=27): time 0.002048/8.127, allocations: 0.6417 MB / 3.753 GB, free: 60.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/8.127, allocations: 110.2 kB / 3.753 GB, free: 60.43 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/8.127, allocations: 339.7 kB / 3.754 GB, free: 60.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/8.127, allocations: 34.25 kB / 3.754 GB, free: 60.29 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/8.127, allocations: 254.6 kB / 3.754 GB, free: 60.17 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/8.127, allocations: 96.53 kB / 3.754 GB, free: 60.12 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/8.127, allocations: 8.906 kB / 3.754 GB, free: 60.12 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.267e-05/8.127, allocations: 351.8 kB / 3.754 GB, free: 59.81 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/8.128, allocations: 97.72 kB / 3.754 GB, free: 59.81 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/8.128, allocations: 267.3 kB / 3.755 GB, free: 59.61 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/8.128, allocations: 144.2 kB / 3.755 GB, free: 59.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/8.128, allocations: 1.594 kB / 3.755 GB, free: 59.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006481/8.129, allocations: 436.9 kB / 3.755 GB, free: 59.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002955/8.129, allocations: 2.004 MB / 3.757 GB, free: 57.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/8.129, allocations: 9.781 kB / 3.757 GB, free: 57.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002531/8.132, allocations: 337.9 kB / 3.758 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000355/8.132, allocations: 104.2 kB / 3.758 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003662/8.132, allocations: 0.5923 MB / 3.758 GB, free: 56.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/8.133, allocations: 77.69 kB / 3.758 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.189e-05/8.133, allocations: 27.42 kB / 3.758 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/8.133, allocations: 4.75 kB / 3.758 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005383/8.133, allocations: 340.8 kB / 3.759 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/8.133, allocations: 5.188 kB / 3.759 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/8.133, allocations: 8.344 kB / 3.759 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/8.134, allocations: 124.8 kB / 3.759 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/8.134, allocations: 10.59 kB / 3.759 GB, free: 56.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/8.134, allocations: 64.58 kB / 3.759 GB, free: 56.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/8.134, allocations: 29.22 kB / 3.759 GB, free: 56.9 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 (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 9.542e-05/8.134, allocations: 130.5 kB / 3.759 GB, free: 56.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.75e-05/8.134, allocations: 43.98 kB / 3.759 GB, free: 56.77 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/8.136, allocations: 1.856 MB / 3.761 GB, free: 56.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.872e-05/8.136, allocations: 26.25 kB / 3.761 GB, free: 56.59 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/8.136, allocations: 0 / 3.761 GB, free: 56.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/8.136, allocations: 4.875 kB / 3.761 GB, free: 56.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009698/8.137, allocations: 0.9603 MB / 3.762 GB, free: 56.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/8.137, allocations: 1.812 kB / 3.762 GB, free: 56.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/8.137, allocations: 75.83 kB / 3.762 GB, free: 56.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/8.139, allocations: 0.7675 MB / 3.763 GB, free: 56.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/8.139, allocations: 5.406 kB / 3.763 GB, free: 56.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006129/8.14, allocations: 0.9987 MB / 3.764 GB, free: 55.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/8.14, allocations: 3.094 kB / 3.764 GB, free: 55.78 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/8.141, allocations: 1.211 MB / 3.765 GB, free: 55.53 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/8.141, allocations: 260.1 kB / 3.765 GB, free: 55.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.963e-05/8.141, allocations: 8.594 kB / 3.765 GB, free: 55.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/8.141, allocations: 34.3 kB / 3.765 GB, free: 55.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/8.141, allocations: 35.23 kB / 3.765 GB, free: 55.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/8.141, allocations: 7.938 kB / 3.765 GB, free: 55.38 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004037/8.142, allocations: 376 kB / 3.766 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.31e-07/8.142, allocations: 1.062 kB / 3.766 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005288/8.147, allocations: 1.22 MB / 3.767 GB, free: 55.28 MB / 0.5417 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.006787/8.154, allocations: 3.117 MB / 3.77 GB, free: 54.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001145/8.155, allocations: 0.6854 MB / 3.77 GB, free: 54.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/8.155, allocations: 2.938 kB / 3.77 GB, free: 54.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003989/8.155, allocations: 448.4 kB / 3.771 GB, free: 54.49 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/8.157, allocations: 236.1 kB / 3.771 GB, free: 54.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/8.16, allocations: 1.615 MB / 3.773 GB, free: 54.12 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/8.16, allocations: 0.9858 MB / 3.774 GB, free: 53.42 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0006857/8.161, allocations: 477 kB / 3.774 GB, free: 53.41 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/8.161, allocations: 257.5 kB / 3.774 GB, free: 53.41 MB / 0.5417 GB Notification: Performance of SimCode: time 3.11e-07/8.161, allocations: 0 / 3.774 GB, free: 53.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06492/8.226, allocations: 48.85 MB / 3.822 GB, free: 51.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/8.226, allocations: 221.4 kB / 3.822 GB, free: 51.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.213/11.44, allocations: 0 / 3.822 GB, free: 51.34 MB / 0.5417 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