Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",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.001107/0.001107, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.389/1.389, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008584/0.0008584, allocations: 80.08 kB / 287 MB, free: 272 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1992/0.1992, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.869e-05, allocations: 4.219 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1375, allocations: 61.91 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9552/1.093, allocations: 290.2 MB / 0.7852 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/1.093, allocations: 79.95 kB / 0.7853 GB, free: 118.1 MB / 0.5105 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 0.2233/1.316, allocations: 119.7 MB / 0.9022 GB, free: 2.07 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.044e-06/1.316, allocations: 0 / 0.9022 GB, free: 2.07 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.663e-05/1.317, allocations: 16 kB / 0.9022 GB, free: 2.055 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.00135/1.318, allocations: 0.8585 MB / 0.903 GB, free: 1.145 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/1.318, allocations: 12.03 kB / 0.9031 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.402e-05/1.318, allocations: 86.52 kB / 0.9031 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002979/1.318, allocations: 87.09 kB / 0.9032 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008755/1.319, allocations: 0.521 MB / 0.9037 GB, free: 404 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/1.319, allocations: 37 kB / 0.9038 GB, free: 364 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/1.319, allocations: 40 kB / 0.9038 GB, free: 324 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009301/1.32, allocations: 0.6473 MB / 0.9044 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/1.32, allocations: 4 kB / 0.9044 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.03e-05/1.32, allocations: 24 kB / 0.9045 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/1.32, allocations: 12 kB / 0.9045 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000768/1.321, allocations: 0.5113 MB / 0.905 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003676/1.325, allocations: 3.077 MB / 0.908 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004006/1.325, allocations: 206.8 kB / 0.9082 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/1.325, allocations: 141 kB / 0.9083 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000288/1.326, allocations: 344.4 kB / 0.9086 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004066/1.326, allocations: 270.8 kB / 0.9089 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.385e-06/1.326, allocations: 0 / 0.9089 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.000861/1.327, allocations: 402.8 kB / 0.9093 GB, free: 10.33 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/1.327, allocations: 294.7 kB / 0.9096 GB, free: 9.973 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/1.328, allocations: 492.8 kB / 0.91 GB, free: 9.48 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/1.328, allocations: 33.7 kB / 0.9101 GB, free: 9.441 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/1.328, allocations: 335.1 kB / 0.9104 GB, free: 9.109 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.998e-05/1.328, allocations: 90.73 kB / 0.9105 GB, free: 9.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/1.328, allocations: 12 kB / 0.9105 GB, free: 9.008 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001832/1.329, allocations: 362.8 kB / 0.9108 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/1.329, allocations: 141.1 kB / 0.911 GB, free: 8.508 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004376/1.329, allocations: 368.9 kB / 0.9113 GB, free: 8.047 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/1.33, allocations: 228.1 kB / 0.9115 GB, free: 7.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/1.33, allocations: 4 kB / 0.9115 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001045/1.331, allocations: 0.6032 MB / 0.9121 GB, free: 7.199 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009369/1.332, allocations: 2.132 MB / 0.9142 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/1.332, allocations: 4 kB / 0.9142 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/1.332, allocations: 8 kB / 0.9142 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.333, allocations: 179.7 kB / 0.9144 GB, free: 4.711 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004929/1.333, allocations: 0.6094 MB / 0.915 GB, free: 4.078 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005769/1.334, allocations: 83.36 kB / 0.9151 GB, free: 3.996 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.874e-05/1.334, allocations: 31.97 kB / 0.9151 GB, free: 3.965 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/1.334, allocations: 4 kB / 0.9151 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008747/1.335, allocations: 0.532 MB / 0.9156 GB, free: 3.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.335, allocations: 4 kB / 0.9156 GB, free: 3.418 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/1.335, allocations: 8 kB / 0.9156 GB, free: 3.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003677/1.335, allocations: 120.5 kB / 0.9157 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/1.335, allocations: 11.98 kB / 0.9158 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004138/1.336, allocations: 71.42 kB / 0.9158 GB, free: 3.211 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/1.336, allocations: 31.98 kB / 0.9159 GB, free: 3.18 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (56): * Single equations (assignments): 54 * 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.0002072/1.336, allocations: 181.1 kB / 0.916 GB, free: 2.992 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.502e-05/1.336, allocations: 59.34 kB / 0.9161 GB, free: 2.934 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/1.337, allocations: 0.7552 MB / 0.9168 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/1.338, allocations: 7.984 kB / 0.9168 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/1.338, allocations: 3.953 kB / 0.9168 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/1.338, allocations: 0 / 0.9168 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006494/1.338, allocations: 0.5131 MB / 0.9173 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/1.338, allocations: 0 / 0.9173 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006173/1.339, allocations: 119.8 kB / 0.9175 GB, free: 1.469 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/1.339, allocations: 4 kB / 0.9175 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/1.339, allocations: 11.98 kB / 0.9175 GB, free: 1.453 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003459/1.339, allocations: 0.5977 MB / 0.9181 GB, free: 0.832 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.339, allocations: 3.938 kB / 0.9181 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/1.34, allocations: 0.5249 MB / 0.9186 GB, free: 284 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/1.34, allocations: 212 kB / 0.9188 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/1.34, allocations: 19.94 kB / 0.9188 GB, free: 32 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/1.341, allocations: 23.98 kB / 0.9188 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.3141/1.655, allocations: 20.34 kB / 0.9188 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/1.655, allocations: 22.02 kB / 0.9189 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007649/1.656, allocations: 404.1 kB / 0.9192 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.4e-07/1.656, allocations: 0 / 0.9192 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001806/1.658, allocations: 459.9 kB / 0.9197 GB, free: 140.1 MB / 0.5261 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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002308/1.66, allocations: 1.42 MB / 0.9211 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002518/1.662, allocations: 0.8988 MB / 0.9219 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.663, allocations: 1.062 kB / 0.9219 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009787/1.663, allocations: 363.5 kB / 0.9223 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/1.665, allocations: 267.7 kB / 0.9225 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/1.667, allocations: 0.9375 MB / 0.9235 GB, free: 139 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/1.668, allocations: 0.9048 MB / 0.9243 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008517/1.669, allocations: 226.7 kB / 0.9246 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/1.669, allocations: 224.2 kB / 0.9248 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.422e-06/1.669, allocations: 2.406 kB / 0.9248 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05374/1.723, allocations: 22.18 MB / 0.9464 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/1.723, allocations: 243.8 kB / 0.9467 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.76/4.483, allocations: 0 / 0.9467 GB, free: 137.2 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat