Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",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.002096/0.002103, 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.139/2.139, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001116/0.001115, allocations: 89.55 kB / 262.1 MB, free: 13.88 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.3089/0.3089, allocations: 43.48 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.21e-05/2.198e-05, allocations: 0 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4162, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.263/8.68, allocations: 2.76 GB / 3.226 GB, free: 27.29 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/8.68, allocations: 93.7 kB / 3.226 GB, free: 27.24 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 .... Notification: Performance of FrontEnd - DAE generated: time 2.058/10.74, allocations: 397.3 MB / 3.614 GB, free: 28.31 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.084e-06/10.74, allocations: 0 / 3.614 GB, free: 28.31 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 4.251e-05/10.74, allocations: 11.91 kB / 3.614 GB, free: 28.3 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.00682/10.75, allocations: 1.541 MB / 3.615 GB, free: 26.72 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/10.75, allocations: 8.031 kB / 3.616 GB, free: 26.71 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003188/10.75, allocations: 295.1 kB / 3.616 GB, free: 26.43 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/10.75, allocations: 451.3 kB / 3.616 GB, free: 25.95 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.039e-05/10.75, allocations: 20.69 kB / 3.616 GB, free: 25.93 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.591e-05/10.75, allocations: 20 kB / 3.616 GB, free: 25.91 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000943/10.75, allocations: 379 kB / 3.617 GB, free: 25.54 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009569/10.75, allocations: 481.7 kB / 3.617 GB, free: 25.02 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/10.75, allocations: 11.83 kB / 3.617 GB, free: 25.01 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.789e-05/10.75, allocations: 4 kB / 3.617 GB, free: 25 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/10.75, allocations: 8 kB / 3.617 GB, free: 25 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.5452/11.3, allocations: 51.21 MB / 3.667 GB, free: 66.04 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007479/11.3, allocations: 264 kB / 3.667 GB, free: 66.02 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/11.3, allocations: 122.8 kB / 3.667 GB, free: 66.01 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1795/11.48, allocations: 55.73 MB / 3.722 GB, free: 31.66 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/11.48, allocations: 39.58 kB / 3.722 GB, free: 31.62 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=24): time 3.056e-06/11.48, allocations: 0 / 3.722 GB, free: 31.62 MB / 0.5108 GB Notification: Performance of matching and sorting (n=24): time 0.00341/11.48, allocations: 0.6247 MB / 3.723 GB, free: 31.57 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/11.48, allocations: 109.5 kB / 3.723 GB, free: 31.45 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/11.48, allocations: 294.5 kB / 3.723 GB, free: 31.35 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 5.82e-05/11.48, allocations: 25.7 kB / 3.723 GB, free: 31.32 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/11.48, allocations: 323.6 kB / 3.723 GB, free: 31.11 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 8.703e-05/11.48, allocations: 81.28 kB / 3.723 GB, free: 31.07 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/11.48, allocations: 0 / 3.723 GB, free: 31.07 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 7.315e-05/11.48, allocations: 332.8 kB / 3.724 GB, free: 30.75 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/11.48, allocations: 96.25 kB / 3.724 GB, free: 30.75 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/11.48, allocations: 225.1 kB / 3.724 GB, free: 30.62 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001731/11.48, allocations: 258.4 kB / 3.724 GB, free: 30.61 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/11.48, allocations: 0 / 3.724 GB, free: 30.61 MB / 0.5108 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002317/11.49, allocations: 499.2 kB / 3.725 GB, free: 30.56 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003012/11.49, allocations: 1.314 MB / 3.726 GB, free: 29.19 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.415e-05/11.49, allocations: 3.875 kB / 3.726 GB, free: 29.19 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/11.49, allocations: 49.75 kB / 3.726 GB, free: 29.18 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/11.49, allocations: 98.83 kB / 3.726 GB, free: 29.18 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/11.49, allocations: 0.6656 MB / 3.727 GB, free: 28.66 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008715/11.49, allocations: 74.66 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/11.49, allocations: 19.81 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/11.49, allocations: 3.375 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001584/11.49, allocations: 370 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/11.49, allocations: 3.969 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/11.49, allocations: 3.312 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007241/11.49, allocations: 111.8 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/11.49, allocations: 6.375 kB / 3.727 GB, free: 28.64 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005693/11.49, allocations: 58.34 kB / 3.727 GB, free: 28.62 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/11.49, allocations: 19.28 kB / 3.727 GB, free: 28.62 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001899/11.49, allocations: 132 kB / 3.728 GB, free: 28.51 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002087/11.5, allocations: 393.6 kB / 3.728 GB, free: 28.45 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/11.5, allocations: 37.53 kB / 3.728 GB, free: 28.43 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/11.5, allocations: 1.588 MB / 3.73 GB, free: 28.25 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-05/11.5, allocations: 27.06 kB / 3.73 GB, free: 28.25 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/11.5, allocations: 0 / 3.73 GB, free: 28.25 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/11.5, allocations: 3.422 kB / 3.73 GB, free: 28.25 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/11.5, allocations: 2.189 MB / 3.732 GB, free: 27.88 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/11.5, allocations: 6.781 kB / 3.732 GB, free: 27.88 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/11.5, allocations: 58.36 kB / 3.732 GB, free: 27.87 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009357/11.51, allocations: 0.5806 MB / 3.732 GB, free: 27.84 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/11.51, allocations: 2.656 kB / 3.732 GB, free: 27.84 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/11.51, allocations: 1.116 MB / 3.733 GB, free: 27.31 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/11.51, allocations: 0 / 3.733 GB, free: 27.31 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/11.51, allocations: 1.219 MB / 3.735 GB, free: 27.02 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003461/11.51, allocations: 189.2 kB / 3.735 GB, free: 26.89 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.79e-05/11.51, allocations: 0 / 3.735 GB, free: 26.89 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005397/11.51, allocations: 30.84 kB / 3.735 GB, free: 26.89 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/11.51, allocations: 32.45 kB / 3.735 GB, free: 26.88 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/11.51, allocations: 15.25 kB / 3.735 GB, free: 26.88 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0003429/11.51, allocations: 227.3 kB / 3.735 GB, free: 26.8 MB / 0.5108 GB Notification: Performance of sort global known variables: time 6.41e-07/11.51, allocations: 0 / 3.735 GB, free: 26.8 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.006018/11.52, allocations: 1.166 MB / 3.736 GB, free: 26.79 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01326/11.53, allocations: 3.324 MB / 3.739 GB, free: 25.77 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.001683/11.53, allocations: 0.6294 MB / 3.74 GB, free: 25.76 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/11.53, allocations: 0.5 kB / 3.74 GB, free: 25.76 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.0007106/11.53, allocations: 401 kB / 3.74 GB, free: 25.75 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/11.53, allocations: 175.5 kB / 3.741 GB, free: 25.73 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006049/11.54, allocations: 1.475 MB / 3.742 GB, free: 25.37 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/11.54, allocations: 0.9434 MB / 3.743 GB, free: 24.66 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000437/11.54, allocations: 233.9 kB / 3.743 GB, free: 24.66 MB / 0.5108 GB Notification: Performance of SimCode: time 1.522e-06/11.54, allocations: 0 / 3.743 GB, free: 24.66 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.016/15.56, allocations: 33.87 MB / 3.776 GB, free: 21.39 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat