Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_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.001057/0.001057, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009184/0.0009184, allocations: 91.55 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2149/0.2149, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.13e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1247, allocations: 58.86 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.363/1.488, allocations: 474.4 MB / 0.9293 GB, free: 170.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/1.488, allocations: 90.41 kB / 0.9294 GB, free: 170.6 MB / 0.4948 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 0.6383/2.126, allocations: 191.4 MB / 1.116 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.876e-06/2.127, allocations: 1.406 kB / 1.116 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.644e-05/2.127, allocations: 17.59 kB / 1.116 GB, free: 106.8 MB / 0.4948 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.002529/2.129, allocations: 1.028 MB / 1.117 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/2.129, allocations: 9.406 kB / 1.117 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/2.131, allocations: 177.1 kB / 1.118 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/2.132, allocations: 0.5562 MB / 1.118 GB, free: 106 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/2.132, allocations: 11.56 kB / 1.118 GB, free: 106 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.701e-05/2.132, allocations: 26.81 kB / 1.118 GB, free: 106 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006608/2.132, allocations: 449.7 kB / 1.119 GB, free: 106 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008343/2.133, allocations: 0.5463 MB / 1.119 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/2.133, allocations: 0 / 1.119 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.555e-05/2.133, allocations: 6.812 kB / 1.119 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/2.133, allocations: 13.38 kB / 1.119 GB, free: 105.9 MB / 0.4948 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.003061/2.136, allocations: 2.736 MB / 1.122 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/2.137, allocations: 279.6 kB / 1.122 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/2.137, allocations: 124 kB / 1.122 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002095/2.137, allocations: 196.6 kB / 1.122 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/2.138, allocations: 261.1 kB / 1.123 GB, free: 104 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 2.324e-06/2.138, allocations: 0 / 1.123 GB, free: 104 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.009234/2.147, allocations: 1.551 MB / 1.124 GB, free: 104 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/2.147, allocations: 299.5 kB / 1.124 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006329/2.148, allocations: 0.4931 MB / 1.125 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/2.148, allocations: 29.05 kB / 1.125 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/2.148, allocations: 369.9 kB / 1.125 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.622e-05/2.148, allocations: 87.8 kB / 1.125 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/2.148, allocations: 1.031 kB / 1.125 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001036/2.148, allocations: 366.3 kB / 1.126 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/2.148, allocations: 148.7 kB / 1.126 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003397/2.149, allocations: 368.6 kB / 1.126 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008755/2.158, allocations: 1.458 MB / 1.128 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/2.158, allocations: 3.625 kB / 1.128 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.009479/2.167, allocations: 1.842 MB / 1.129 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005124/2.168, allocations: 2.038 MB / 1.131 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/2.168, allocations: 3.75 kB / 1.131 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/2.168, allocations: 11.31 kB / 1.131 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00584/2.174, allocations: 0.5982 MB / 1.132 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00309/2.177, allocations: 1.021 MB / 1.133 GB, free: 99.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008723/2.178, allocations: 64.38 kB / 1.133 GB, free: 99.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/2.178, allocations: 52.44 kB / 1.133 GB, free: 99.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/2.178, allocations: 9.219 kB / 1.133 GB, free: 99.91 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002716/2.18, allocations: 0.9054 MB / 1.134 GB, free: 99.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/2.18, allocations: 3.875 kB / 1.134 GB, free: 99.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/2.181, allocations: 10.66 kB / 1.134 GB, free: 99.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/2.181, allocations: 123.4 kB / 1.134 GB, free: 99.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/2.181, allocations: 14.08 kB / 1.134 GB, free: 99.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005852/2.182, allocations: 41.52 kB / 1.134 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.866e-05/2.182, allocations: 55.94 kB / 1.134 GB, free: 99.89 MB / 0.4948 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.0002552/2.182, allocations: 163.5 kB / 1.134 GB, free: 99.75 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008721/2.191, allocations: 1.571 MB / 1.136 GB, free: 99.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/2.191, allocations: 61.39 kB / 1.136 GB, free: 99.65 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00336/2.194, allocations: 0.77 MB / 1.137 GB, free: 99.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/2.194, allocations: 7.453 kB / 1.137 GB, free: 99.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/2.194, allocations: 0 / 1.137 GB, free: 99.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/2.194, allocations: 6.844 kB / 1.137 GB, free: 99.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006486/2.195, allocations: 450.4 kB / 1.137 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/2.195, allocations: 0 / 1.137 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/2.197, allocations: 181 kB / 1.137 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/2.197, allocations: 0 / 1.137 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/2.197, allocations: 7.922 kB / 1.137 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009714/2.198, allocations: 0.7342 MB / 1.138 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/2.198, allocations: 0 / 1.138 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/2.201, allocations: 0.7025 MB / 1.139 GB, free: 98.75 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/2.201, allocations: 162 kB / 1.139 GB, free: 98.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/2.201, allocations: 6.25 kB / 1.139 GB, free: 98.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/2.201, allocations: 21.83 kB / 1.139 GB, free: 98.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/2.202, allocations: 16.28 kB / 1.139 GB, free: 98.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/2.202, allocations: 10.52 kB / 1.139 GB, free: 98.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000466/2.202, allocations: 399.8 kB / 1.139 GB, free: 98.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/2.202, allocations: 3.219 kB / 1.139 GB, free: 98.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002126/2.204, allocations: 0.601 MB / 1.14 GB, free: 98.46 MB / 0.4948 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.005606/2.21, allocations: 2.511 MB / 1.142 GB, free: 97.69 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01082/2.221, allocations: 1.546 MB / 1.144 GB, free: 97.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/2.221, allocations: 0 / 1.144 GB, free: 97.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002798/2.223, allocations: 401 kB / 1.144 GB, free: 97.48 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/2.225, allocations: 212.4 kB / 1.145 GB, free: 97.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/2.228, allocations: 0.8734 MB / 1.145 GB, free: 97.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/2.228, allocations: 0.8991 MB / 1.146 GB, free: 96.45 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001348/2.23, allocations: 277.8 kB / 1.147 GB, free: 96.44 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003758/2.23, allocations: 222 kB / 1.147 GB, free: 96.44 MB / 0.4948 GB Notification: Performance of SimCode: time 1.743e-06/2.23, allocations: 0 / 1.147 GB, free: 96.44 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05028/2.28, allocations: 25.43 MB / 1.172 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/2.281, allocations: 196.9 kB / 1.172 GB, free: 94.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.084/5.364, allocations: 0 / 1.172 GB, free: 94.89 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat