Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",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.002251/0.002251, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001104, allocations: 88.91 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3281/0.3281, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.682e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5034/0.5034, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.557/2.06, allocations: 474.4 MB / 0.9293 GB, free: 84.14 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/2.06, allocations: 80.14 kB / 0.9294 GB, free: 84.09 MB / 0.4952 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 1.017/3.077, allocations: 191.4 MB / 1.116 GB, free: 100.1 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.753e-06/3.077, allocations: 0 / 1.116 GB, free: 100.1 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 5.575e-05/3.078, allocations: 18.73 kB / 1.116 GB, free: 100.1 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00277/3.08, allocations: 1.031 MB / 1.117 GB, free: 99 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/3.08, allocations: 12.03 kB / 1.117 GB, free: 98.98 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001852/3.082, allocations: 174.9 kB / 1.118 GB, free: 98.81 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/3.084, allocations: 0.5569 MB / 1.118 GB, free: 98.23 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/3.084, allocations: 16 kB / 1.118 GB, free: 98.21 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.142e-05/3.084, allocations: 27.94 kB / 1.118 GB, free: 98.19 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00106/3.085, allocations: 454.4 kB / 1.119 GB, free: 97.74 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/3.086, allocations: 0.5465 MB / 1.119 GB, free: 97.15 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/3.086, allocations: 4 kB / 1.119 GB, free: 97.14 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.42e-05/3.086, allocations: 4 kB / 1.119 GB, free: 97.14 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/3.086, allocations: 8 kB / 1.119 GB, free: 97.13 MB / 0.4952 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.004753/3.091, allocations: 2.738 MB / 1.122 GB, free: 94.25 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009879/3.092, allocations: 270.6 kB / 1.122 GB, free: 93.98 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/3.092, allocations: 124.8 kB / 1.122 GB, free: 93.86 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003002/3.093, allocations: 206.1 kB / 1.122 GB, free: 93.62 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004317/3.093, allocations: 261.6 kB / 1.123 GB, free: 93.33 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=25): time 2.925e-06/3.093, allocations: 0 / 1.123 GB, free: 93.33 MB / 0.4952 GB Notification: Performance of matching and sorting (n=25): time 0.01616/3.109, allocations: 1.549 MB / 1.124 GB, free: 91.78 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.996e-05/3.109, allocations: 294.7 kB / 1.124 GB, free: 91.43 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008111/3.11, allocations: 0.4982 MB / 1.125 GB, free: 90.92 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/3.11, allocations: 25.7 kB / 1.125 GB, free: 90.89 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002622/3.111, allocations: 405.3 kB / 1.125 GB, free: 90.49 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 8.287e-05/3.111, allocations: 78.91 kB / 1.125 GB, free: 90.41 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/3.111, allocations: 0 / 1.125 GB, free: 90.41 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.308e-05/3.111, allocations: 326.8 kB / 1.126 GB, free: 90.09 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/3.111, allocations: 153.1 kB / 1.126 GB, free: 89.93 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004704/3.112, allocations: 375.3 kB / 1.126 GB, free: 89.47 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01565/3.127, allocations: 1.458 MB / 1.128 GB, free: 88.02 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/3.127, allocations: 3.953 kB / 1.128 GB, free: 88.02 MB / 0.4952 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01667/3.144, allocations: 1.812 MB / 1.129 GB, free: 86.21 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004991/3.145, allocations: 2.042 MB / 1.131 GB, free: 84.01 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/3.145, allocations: 4 kB / 1.131 GB, free: 84 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.558e-05/3.145, allocations: 12 kB / 1.131 GB, free: 83.99 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/3.156, allocations: 0.597 MB / 1.132 GB, free: 83.39 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005508/3.162, allocations: 1.011 MB / 1.133 GB, free: 82.36 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/3.163, allocations: 71.3 kB / 1.133 GB, free: 82.29 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/3.163, allocations: 51.98 kB / 1.133 GB, free: 82.24 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/3.163, allocations: 7.938 kB / 1.133 GB, free: 82.23 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004186/3.167, allocations: 0.9066 MB / 1.134 GB, free: 81.33 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/3.167, allocations: 8 kB / 1.134 GB, free: 81.32 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/3.167, allocations: 11.98 kB / 1.134 GB, free: 81.31 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/3.168, allocations: 123.8 kB / 1.134 GB, free: 81.19 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/3.168, allocations: 11.94 kB / 1.134 GB, free: 81.18 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005857/3.168, allocations: 47.56 kB / 1.134 GB, free: 81.13 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-05/3.169, allocations: 56.03 kB / 1.134 GB, free: 81.07 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002187/3.169, allocations: 154.5 kB / 1.134 GB, free: 80.91 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01576/3.185, allocations: 1.564 MB / 1.136 GB, free: 79.34 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/3.185, allocations: 55.34 kB / 1.136 GB, free: 79.29 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005623/3.19, allocations: 0.7783 MB / 1.137 GB, free: 78.5 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/3.19, allocations: 0 / 1.137 GB, free: 78.5 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/3.19, allocations: 0 / 1.137 GB, free: 78.5 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/3.19, allocations: 4 kB / 1.137 GB, free: 78.5 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007401/3.191, allocations: 465.2 kB / 1.137 GB, free: 78.02 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/3.191, allocations: 0 / 1.137 GB, free: 78.02 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003047/3.194, allocations: 179.7 kB / 1.137 GB, free: 77.84 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/3.194, allocations: 0 / 1.137 GB, free: 77.84 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/3.194, allocations: 8 kB / 1.137 GB, free: 77.83 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001572/3.196, allocations: 0.7225 MB / 1.138 GB, free: 77.09 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/3.196, allocations: 0 / 1.138 GB, free: 77.09 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005247/3.201, allocations: 0.7148 MB / 1.139 GB, free: 76.35 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/3.201, allocations: 156.1 kB / 1.139 GB, free: 76.18 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/3.202, allocations: 4 kB / 1.139 GB, free: 76.18 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005665/3.202, allocations: 23.97 kB / 1.139 GB, free: 76.15 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.691e-05/3.202, allocations: 15.98 kB / 1.139 GB, free: 76.14 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/3.202, allocations: 15.98 kB / 1.139 GB, free: 76.12 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0006096/3.203, allocations: 402.9 kB / 1.139 GB, free: 75.73 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.01e-07/3.203, allocations: 0 / 1.139 GB, free: 75.73 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.002386/3.205, allocations: 0.6037 MB / 1.14 GB, free: 75.13 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008331/3.214, allocations: 2.503 MB / 1.142 GB, free: 72.74 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02055/3.234, allocations: 1.525 MB / 1.144 GB, free: 71.19 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/3.234, allocations: 0 / 1.144 GB, free: 71.19 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.005229/3.24, allocations: 403.2 kB / 1.144 GB, free: 70.79 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/3.241, allocations: 193.8 kB / 1.144 GB, free: 70.59 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/3.244, allocations: 0.8998 MB / 1.145 GB, free: 69.64 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/3.245, allocations: 0.8867 MB / 1.146 GB, free: 68.73 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006794/3.245, allocations: 259.3 kB / 1.146 GB, free: 68.48 MB / 0.4952 GB Notification: Performance of SimCode: time 1.593e-06/3.245, allocations: 3.938 kB / 1.146 GB, free: 68.47 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.103/6.348, allocations: 21.98 MB / 1.168 GB, free: 46.48 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat