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.001965/0.001965, allocations: 176.5 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.569/1.569, allocations: 223.2 MB / 241 MB, free: 10.16 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.0008793/0.0008793, allocations: 98.16 kB / 292.1 MB, free: 10.69 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.4582/0.4582, allocations: 44.2 MB / 387.4 MB, free: 38.54 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003672, allocations: 12 kB / 460 MB, free: 1.402 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.4643, allocations: 61.9 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6807/1.145, allocations: 290.3 MB / 0.7931 GB, free: 38.63 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/1.145, allocations: 99.3 kB / 0.7932 GB, free: 38.57 MB / 490.7 MB [/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.6475/1.793, allocations: 120.2 MB / 0.9106 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.387e-06/1.793, allocations: 0 / 0.9106 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.437e-05/1.793, allocations: 13 kB / 0.9106 GB, free: 142.7 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.00236/1.795, allocations: 0.9361 MB / 0.9115 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.854e-05/1.796, allocations: 10.66 kB / 0.9115 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001631/1.796, allocations: 89.62 kB / 0.9116 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003793/1.796, allocations: 82.08 kB / 0.9117 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/1.797, allocations: 0.5287 MB / 0.9122 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.17e-05/1.797, allocations: 32.19 kB / 0.9122 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.9e-05/1.798, allocations: 44.91 kB / 0.9122 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/1.799, allocations: 0.6604 MB / 0.9129 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/1.799, allocations: 8.359 kB / 0.9129 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/1.799, allocations: 21.38 kB / 0.9129 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/1.799, allocations: 14.53 kB / 0.9129 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009148/1.8, allocations: 0.5186 MB / 0.9134 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/1.805, allocations: 3.076 MB / 0.9164 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/1.805, allocations: 211.6 kB / 0.9166 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003068/1.805, allocations: 343.1 kB / 0.917 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000534/1.806, allocations: 281.8 kB / 0.9172 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 4.999e-06/1.806, allocations: 4.844 kB / 0.9172 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.001291/1.807, allocations: 0.5801 MB / 0.9178 GB, free: 139 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/1.807, allocations: 293.5 kB / 0.9181 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008175/1.808, allocations: 493 kB / 0.9186 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/1.808, allocations: 32.14 kB / 0.9186 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/1.809, allocations: 334.4 kB / 0.9189 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/1.809, allocations: 95.39 kB / 0.919 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/1.809, allocations: 9.75 kB / 0.919 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001858/1.809, allocations: 372.7 kB / 0.9194 GB, free: 138 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/1.809, allocations: 151.7 kB / 0.9195 GB, free: 138 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005074/1.81, allocations: 362.2 kB / 0.9199 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004012/1.81, allocations: 228.2 kB / 0.9201 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/1.81, allocations: 1.312 kB / 0.9201 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001223/1.811, allocations: 0.6174 MB / 0.9207 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006018/1.812, allocations: 2.129 MB / 0.9228 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/1.812, allocations: 1.969 kB / 0.9228 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.964e-05/1.812, allocations: 10.17 kB / 0.9228 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/1.813, allocations: 178.1 kB / 0.9229 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004788/1.814, allocations: 0.615 MB / 0.9235 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006566/1.814, allocations: 80.48 kB / 0.9236 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.652e-05/1.815, allocations: 31.67 kB / 0.9236 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.815, allocations: 4.344 kB / 0.9237 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/1.816, allocations: 0.5388 MB / 0.9242 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/1.816, allocations: 10.58 kB / 0.9242 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/1.816, allocations: 15.06 kB / 0.9242 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/1.816, allocations: 114 kB / 0.9243 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/1.816, allocations: 16.14 kB / 0.9243 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/1.817, allocations: 62.58 kB / 0.9244 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.885e-05/1.817, allocations: 35.44 kB / 0.9244 GB, free: 134.6 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 () * Number of clocked 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.0004495/1.817, allocations: 306.6 kB / 0.9247 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/1.817, allocations: 63.66 kB / 0.9248 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/1.819, allocations: 0.752 MB / 0.9255 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/1.819, allocations: 3.969 kB / 0.9255 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/1.819, allocations: 3.875 kB / 0.9255 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/1.819, allocations: 5.312 kB / 0.9255 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008729/1.82, allocations: 0.5267 MB / 0.926 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/1.82, allocations: 1.688 kB / 0.926 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006586/1.821, allocations: 116.9 kB / 0.9261 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/1.821, allocations: 2.156 kB / 0.9261 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/1.821, allocations: 15.47 kB / 0.9262 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000302/1.821, allocations: 0.5915 MB / 0.9267 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.821, allocations: 0 / 0.9267 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009481/1.822, allocations: 0.5338 MB / 0.9273 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/1.822, allocations: 215.4 kB / 0.9275 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.943e-05/1.823, allocations: 8.969 kB / 0.9275 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/1.823, allocations: 31.23 kB / 0.9275 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/1.823, allocations: 27.5 kB / 0.9275 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/1.823, allocations: 20.25 kB / 0.9276 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005915/1.824, allocations: 412.4 kB / 0.9279 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/1.824, allocations: 0 / 0.9279 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002019/1.826, allocations: 470.9 kB / 0.9284 GB, free: 133 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) * Number of clocked states: 0 () * 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.00244/1.828, allocations: 1.432 MB / 0.9298 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002714/1.831, allocations: 0.8863 MB / 0.9307 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/1.831, allocations: 1.094 kB / 0.9307 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001014/1.832, allocations: 369 kB / 0.931 GB, free: 132 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/1.833, allocations: 264.7 kB / 0.9313 GB, free: 132 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007517/1.841, allocations: 6.9 MB / 0.938 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/1.841, allocations: 0.9057 MB / 0.9389 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009849/1.842, allocations: 207.6 kB / 0.9391 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003507/1.843, allocations: 229 kB / 0.9393 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.753e-06/1.843, allocations: 0 / 0.9393 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04633/1.889, allocations: 21.23 MB / 0.96 GB, free: 125 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/1.889, allocations: 274.8 kB / 0.9603 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.981/4.87, allocations: 0 / 0.9603 GB, free: 124.6 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