Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",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.001309/0.001309, allocations: 176.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000961/0.0009611, allocations: 100.7 kB / 292.1 MB, free: 10.91 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.4206/0.4206, allocations: 44.21 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005411/0.0005412, allocations: 8 kB / 460 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3967, allocations: 61.9 MB / 0.5096 GB, free: 37.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.415/7.811, allocations: 2.767 GB / 3.277 GB, free: 92.52 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004014/7.812, allocations: 97.55 kB / 3.277 GB, free: 92.43 MB / 0.5261 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 .... [/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 2.755/10.57, allocations: 0.6743 GB / 3.951 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.707e-06/10.57, allocations: 4 kB / 3.951 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.888e-05/10.57, allocations: 23.98 kB / 3.951 GB, free: 12.05 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009125/10.58, allocations: 2.276 MB / 3.953 GB, free: 9.723 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/10.58, allocations: 8.031 kB / 3.953 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/10.58, allocations: 126.7 kB / 3.953 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004743/10.58, allocations: 0.5686 MB / 3.954 GB, free: 9.012 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/10.58, allocations: 0.6737 MB / 3.955 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.015e-05/10.58, allocations: 66 kB / 3.955 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-05/10.58, allocations: 76 kB / 3.955 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/10.59, allocations: 1.382 MB / 3.956 GB, free: 6.672 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/10.59, allocations: 0 / 3.956 GB, free: 6.672 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-05/10.59, allocations: 36 kB / 3.956 GB, free: 6.637 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/10.59, allocations: 23.98 kB / 3.956 GB, free: 6.613 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00285/10.59, allocations: 1.243 MB / 3.957 GB, free: 5.363 MB / 0.5261 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.006484/10.6, allocations: 5.72 MB / 3.963 GB, free: 15.28 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003021/10.6, allocations: 1.025 MB / 3.964 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5252/11.12, allocations: 32.14 MB / 3.995 GB, free: 32.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/11.12, allocations: 44.47 kB / 3.995 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001015/11.12, allocations: 138.2 kB / 3.996 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=58): time 2.905e-06/11.12, allocations: 0 / 3.996 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=58): time 0.005632/11.13, allocations: 1.879 MB / 3.997 GB, free: 32.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/11.13, allocations: 192.2 kB / 3.998 GB, free: 32.33 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008363/11.13, allocations: 0.5856 MB / 3.998 GB, free: 32.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/11.13, allocations: 36.3 kB / 3.998 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002625/11.13, allocations: 404.3 kB / 3.999 GB, free: 32.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/11.13, allocations: 195 kB / 3.999 GB, free: 31.92 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/11.13, allocations: 20.19 kB / 3.999 GB, free: 31.92 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001397/11.13, allocations: 391.1 kB / 3.999 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/11.13, allocations: 276.2 kB / 3.999 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007822/11.13, allocations: 0.534 MB / 4 GB, free: 31.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007207/11.13, allocations: 326.2 kB / 4 GB, free: 31.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/11.13, allocations: 3.062 kB / 4 GB, free: 31.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001959/11.14, allocations: 0.9658 MB / 4.001 GB, free: 31.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006842/11.14, allocations: 2.963 MB / 4.004 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/11.14, allocations: 8.844 kB / 4.004 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004941/11.14, allocations: 0.6375 MB / 4.005 GB, free: 28.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007764/11.14, allocations: 199.2 kB / 4.005 GB, free: 28.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007646/11.14, allocations: 1.166 MB / 4.006 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009627/11.14, allocations: 81.19 kB / 4.006 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.692e-05/11.14, allocations: 44.09 kB / 4.006 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/11.14, allocations: 2.438 kB / 4.006 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001686/11.15, allocations: 0.7973 MB / 4.007 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/11.15, allocations: 10.19 kB / 4.007 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/11.15, allocations: 15.53 kB / 4.007 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007994/11.15, allocations: 220 kB / 4.007 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/11.15, allocations: 17.95 kB / 4.007 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008386/11.15, allocations: 76.91 kB / 4.007 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-05/11.15, allocations: 41.12 kB / 4.007 GB, free: 27.05 MB / 0.5417 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.0005281/11.15, allocations: 308.5 kB / 4.008 GB, free: 26.86 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/11.15, allocations: 89.75 kB / 4.008 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004928/11.15, allocations: 3.715 MB / 4.011 GB, free: 26.47 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-05/11.15, allocations: 48.59 kB / 4.011 GB, free: 26.47 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/11.15, allocations: 6.281 kB / 4.011 GB, free: 26.47 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/11.15, allocations: 9.391 kB / 4.011 GB, free: 26.47 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/11.16, allocations: 1.774 MB / 4.013 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/11.16, allocations: 0 / 4.013 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/11.16, allocations: 163.4 kB / 4.013 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002383/11.16, allocations: 0.8812 MB / 4.014 GB, free: 26.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.665e-05/11.16, allocations: 16.12 kB / 4.014 GB, free: 26.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/11.16, allocations: 1.567 MB / 4.016 GB, free: 25.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/11.16, allocations: 1.031 kB / 4.016 GB, free: 25.13 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/11.16, allocations: 2.179 MB / 4.018 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000799/11.16, allocations: 459.7 kB / 4.018 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/11.16, allocations: 16.47 kB / 4.018 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006195/11.17, allocations: 80.8 kB / 4.018 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/11.17, allocations: 59.95 kB / 4.018 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/11.17, allocations: 28.95 kB / 4.018 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001031/11.17, allocations: 0.7557 MB / 4.019 GB, free: 24.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.81e-07/11.17, allocations: 0.75 kB / 4.019 GB, free: 24.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007043/11.17, allocations: 1.333 MB / 4.02 GB, free: 24.34 MB / 0.5417 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.01262/11.19, allocations: 4.281 MB / 4.025 GB, free: 23.19 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003539/11.19, allocations: 1.524 MB / 4.026 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/11.19, allocations: 0 / 4.026 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/11.19, allocations: 0.8842 MB / 4.027 GB, free: 23.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/11.19, allocations: 495.8 kB / 4.027 GB, free: 23.14 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01694/11.21, allocations: 12.23 MB / 4.039 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009634/11.21, allocations: 1.293 MB / 4.041 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002409/11.21, allocations: 1.225 MB / 4.042 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000643/11.21, allocations: 0.5454 MB / 4.042 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of SimCode: time 1.212e-06/11.21, allocations: 0 / 4.042 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1151/11.33, allocations: 63.75 MB / 4.105 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000719/11.33, allocations: 262.2 kB / 4.105 GB, free: 27.55 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.524/15.85, allocations: 2.953 kB / 4.105 GB, free: 27.55 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat