Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",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.001138/0.001138, allocations: 182.9 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001056/0.001056, allocations: 98.84 kB / 270.2 MB, free: 13.36 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.2605/0.2605, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003979, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1383, allocations: 58.86 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.668/7.806, allocations: 2.762 GB / 3.241 GB, free: 79 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/7.807, allocations: 90.89 kB / 3.241 GB, free: 78.95 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 .... [/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.454/10.26, allocations: 0.667 GB / 3.908 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.174e-06/10.26, allocations: 0 / 3.908 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.831e-05/10.26, allocations: 23.98 kB / 3.908 GB, free: 10.59 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008184/10.27, allocations: 2.276 MB / 3.91 GB, free: 8.258 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/10.27, allocations: 8.031 kB / 3.91 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002274/10.27, allocations: 126.7 kB / 3.91 GB, free: 8.117 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004996/10.27, allocations: 0.5668 MB / 3.911 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/10.28, allocations: 0.6737 MB / 3.911 GB, free: 6.832 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.462e-05/10.28, allocations: 62.69 kB / 3.911 GB, free: 6.773 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/10.28, allocations: 75.94 kB / 3.911 GB, free: 6.699 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002953/10.28, allocations: 1.378 MB / 3.913 GB, free: 5.223 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/10.28, allocations: 4 kB / 3.913 GB, free: 5.219 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-05/10.28, allocations: 40 kB / 3.913 GB, free: 5.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/10.28, allocations: 20 kB / 3.913 GB, free: 5.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002785/10.28, allocations: 1.247 MB / 3.914 GB, free: 3.91 MB / 0.5105 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.006591/10.29, allocations: 5.731 MB / 3.92 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002946/10.29, allocations: 1.015 MB / 3.921 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4345/10.73, allocations: 32.14 MB / 3.952 GB, free: 35.17 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.868e-05/10.73, allocations: 43.14 kB / 3.952 GB, free: 35.13 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001362/10.73, allocations: 138.9 kB / 3.952 GB, free: 35.13 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=58): time 4.138e-06/10.73, allocations: 2.969 kB / 3.952 GB, free: 35.13 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58): time 0.007204/10.73, allocations: 1.88 MB / 3.954 GB, free: 34.89 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.339e-05/10.74, allocations: 189.2 kB / 3.954 GB, free: 34.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/10.74, allocations: 0.5846 MB / 3.955 GB, free: 34.54 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.448e-05/10.74, allocations: 36.3 kB / 3.955 GB, free: 34.51 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/10.74, allocations: 400.8 kB / 3.955 GB, free: 34.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/10.74, allocations: 199.3 kB / 3.955 GB, free: 34.26 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/10.74, allocations: 15.22 kB / 3.955 GB, free: 34.26 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001783/10.74, allocations: 385.6 kB / 3.956 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008179/10.74, allocations: 281 kB / 3.956 GB, free: 33.94 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009632/10.74, allocations: 0.5361 MB / 3.957 GB, free: 33.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008103/10.74, allocations: 332.7 kB / 3.957 GB, free: 33.63 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/10.74, allocations: 2.375 kB / 3.957 GB, free: 33.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002678/10.74, allocations: 0.9533 MB / 3.958 GB, free: 33.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007873/10.74, allocations: 2.968 MB / 3.961 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/10.74, allocations: 8.172 kB / 3.961 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005194/10.75, allocations: 0.6404 MB / 3.961 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009266/10.75, allocations: 197.7 kB / 3.961 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000929/10.75, allocations: 1.165 MB / 3.963 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/10.75, allocations: 82.98 kB / 3.963 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.76e-05/10.75, allocations: 44.67 kB / 3.963 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/10.75, allocations: 5.594 kB / 3.963 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002003/10.75, allocations: 0.7985 MB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/10.75, allocations: 7.938 kB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/10.75, allocations: 12.06 kB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008583/10.75, allocations: 222.6 kB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/10.75, allocations: 21.58 kB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009207/10.76, allocations: 76.91 kB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.852e-05/10.76, allocations: 43.2 kB / 3.964 GB, free: 29.38 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00061/10.76, allocations: 306.8 kB / 3.964 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/10.76, allocations: 89.91 kB / 3.964 GB, free: 29.15 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004455/10.76, allocations: 3.72 MB / 3.968 GB, free: 28.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.099e-05/10.76, allocations: 53.28 kB / 3.968 GB, free: 28.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/10.76, allocations: 0 / 3.968 GB, free: 28.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/10.76, allocations: 3.328 kB / 3.968 GB, free: 28.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/10.76, allocations: 1.776 MB / 3.97 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/10.76, allocations: 0 / 3.97 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005591/10.76, allocations: 156.7 kB / 3.97 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002498/10.77, allocations: 0.881 MB / 3.971 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.857e-05/10.77, allocations: 20.19 kB / 3.971 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/10.77, allocations: 1.566 MB / 3.972 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/10.77, allocations: 0 / 3.972 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00277/10.77, allocations: 2.176 MB / 3.974 GB, free: 26.99 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007847/10.77, allocations: 458.9 kB / 3.975 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/10.77, allocations: 17.05 kB / 3.975 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/10.77, allocations: 78.42 kB / 3.975 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/10.77, allocations: 66.08 kB / 3.975 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.626e-05/10.77, allocations: 28.33 kB / 3.975 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009561/10.77, allocations: 0.755 MB / 3.976 GB, free: 26.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.593e-06/10.77, allocations: 0 / 3.976 GB, free: 26.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006352/10.78, allocations: 1.334 MB / 3.977 GB, free: 26.68 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.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 (68): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01138/10.79, allocations: 4.276 MB / 3.981 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003892/10.79, allocations: 1.521 MB / 3.983 GB, free: 25.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/10.8, allocations: 0 / 3.983 GB, free: 25.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001373/10.8, allocations: 0.8851 MB / 3.984 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002983/10.8, allocations: 488 kB / 3.984 GB, free: 25.48 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02076/10.82, allocations: 12.24 MB / 3.996 GB, free: 17.89 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000947/10.82, allocations: 1.29 MB / 3.997 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002302/10.82, allocations: 1.225 MB / 3.998 GB, free: 17.14 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007589/10.82, allocations: 0.5454 MB / 3.999 GB, free: 17.13 MB / 0.5261 GB Notification: Performance of SimCode: time 1.983e-06/10.82, allocations: 2.906 kB / 3.999 GB, free: 17.13 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1188/10.94, allocations: 63.71 MB / 4.061 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002073/10.94, allocations: 252.5 kB / 4.061 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.469/15.41, allocations: 3.812 kB / 4.061 GB, free: 13.45 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat