Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",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.001782/0.001782, allocations: 180.5 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.659/1.659, allocations: 221.3 MB / 236 MB, free: 2.973 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.001014/0.001014, allocations: 91.17 kB / 287 MB, free: 244 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.2405/0.2405, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.883e-05, allocations: 7.938 kB / 451.9 MB, free: 9.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1706, allocations: 61.9 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.311/8.481, allocations: 2.823 GB / 3.325 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/8.481, allocations: 75.97 kB / 3.325 GB, free: 114.5 MB / 0.5261 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 .... Notification: Performance of FrontEnd - DAE generated: time 3.443/11.92, allocations: 0.7563 GB / 4.082 GB, free: 38.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.064e-06/11.92, allocations: 2.625 kB / 4.082 GB, free: 38.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002576/11.93, allocations: 34.19 kB / 4.082 GB, free: 38.11 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.01469/11.94, allocations: 2.726 MB / 4.084 GB, free: 37 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/11.94, allocations: 16.81 kB / 4.084 GB, free: 37 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009499/11.94, allocations: 174.1 kB / 4.084 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00542/11.95, allocations: 0.5939 MB / 4.085 GB, free: 36.88 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003846/11.95, allocations: 1.07 MB / 4.086 GB, free: 36.55 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001882/11.95, allocations: 96 kB / 4.086 GB, free: 36.55 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000614/11.95, allocations: 102 kB / 4.086 GB, free: 36.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006703/11.96, allocations: 2.257 MB / 4.088 GB, free: 36.2 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.099e-05/11.96, allocations: 5.625 kB / 4.088 GB, free: 36.2 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004493/11.96, allocations: 48.59 kB / 4.088 GB, free: 36.2 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/11.96, allocations: 87.73 kB / 4.089 GB, free: 36.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005817/11.96, allocations: 2.271 MB / 4.091 GB, free: 36.18 MB / 0.5417 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.01901/11.98, allocations: 9.205 MB / 4.1 GB, free: 31.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004453/11.99, allocations: 1.744 MB / 4.101 GB, free: 31.13 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/11.99, allocations: 0.6931 MB / 4.102 GB, free: 31.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04801/12.04, allocations: 24.51 MB / 4.126 GB, free: 32.18 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.266e-05/12.04, allocations: 47.59 kB / 4.126 GB, free: 32.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001953/12.04, allocations: 204.2 kB / 4.126 GB, free: 32.09 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=109): time 1.487e-05/12.04, allocations: 3.094 kB / 4.126 GB, free: 32.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=109): time 0.009867/12.05, allocations: 2.605 MB / 4.129 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001939/12.05, allocations: 216.3 kB / 4.129 GB, free: 31.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/12.05, allocations: 0.8301 MB / 4.13 GB, free: 31.54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003562/12.05, allocations: 51.36 kB / 4.13 GB, free: 31.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006732/12.05, allocations: 0.5541 MB / 4.13 GB, free: 31.27 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006776/12.05, allocations: 381.6 kB / 4.131 GB, free: 31.03 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/12.05, allocations: 24.06 kB / 4.131 GB, free: 31.03 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002874/12.05, allocations: 356.6 kB / 4.131 GB, free: 30.72 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/12.05, allocations: 0.5547 MB / 4.132 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/12.06, allocations: 0.9087 MB / 4.133 GB, free: 30.32 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/12.06, allocations: 0.6733 MB / 4.133 GB, free: 30.3 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/12.06, allocations: 3.844 kB / 4.133 GB, free: 30.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003871/12.06, allocations: 1.853 MB / 4.135 GB, free: 30.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001851/12.06, allocations: 3.746 MB / 4.139 GB, free: 26.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-05/12.06, allocations: 10.09 kB / 4.139 GB, free: 26.28 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02689/12.09, allocations: 2.981 MB / 4.142 GB, free: 26.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/12.09, allocations: 278.8 kB / 4.142 GB, free: 26.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/12.1, allocations: 1.398 MB / 4.143 GB, free: 25.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/12.1, allocations: 145.1 kB / 4.143 GB, free: 25.72 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004335/12.1, allocations: 75.39 kB / 4.144 GB, free: 25.72 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/12.1, allocations: 6.938 kB / 4.144 GB, free: 25.72 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004323/12.1, allocations: 1.585 MB / 4.145 GB, free: 25.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.748e-05/12.1, allocations: 13.28 kB / 4.145 GB, free: 25.69 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008193/12.1, allocations: 191.7 kB / 4.145 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/12.1, allocations: 348.3 kB / 4.146 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009675/12.11, allocations: 0.7379 MB / 4.146 GB, free: 25.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/12.11, allocations: 145.9 kB / 4.146 GB, free: 25.15 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002935/12.11, allocations: 67.25 kB / 4.147 GB, free: 25.15 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 128 * 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 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0007076/12.11, allocations: 195.1 kB / 4.147 GB, free: 25.03 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005423/12.11, allocations: 138.1 kB / 4.147 GB, free: 24.97 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007764/12.12, allocations: 5.493 MB / 4.152 GB, free: 24.39 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.619e-05/12.12, allocations: 59.08 kB / 4.152 GB, free: 24.39 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/12.12, allocations: 0 / 4.152 GB, free: 24.39 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/12.12, allocations: 10.75 kB / 4.152 GB, free: 24.38 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/12.13, allocations: 7.536 MB / 4.16 GB, free: 23.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/12.13, allocations: 0 / 4.16 GB, free: 23.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008887/12.13, allocations: 209.9 kB / 4.16 GB, free: 23.75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02395/12.15, allocations: 4.287 MB / 4.164 GB, free: 23.67 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004387/12.15, allocations: 30.11 kB / 4.164 GB, free: 23.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003414/12.16, allocations: 2.339 MB / 4.166 GB, free: 23.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/12.16, allocations: 0 / 4.166 GB, free: 23.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006214/12.16, allocations: 3.501 MB / 4.17 GB, free: 22.61 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/12.17, allocations: 0.6423 MB / 4.17 GB, free: 22.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000666/12.17, allocations: 26.81 kB / 4.17 GB, free: 22.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001929/12.17, allocations: 130.6 kB / 4.171 GB, free: 22.32 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/12.17, allocations: 109.8 kB / 4.171 GB, free: 22.31 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/12.17, allocations: 46.91 kB / 4.171 GB, free: 22.31 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002298/12.17, allocations: 1.037 MB / 4.172 GB, free: 22.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.52e-07/12.17, allocations: 0 / 4.172 GB, free: 22.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01095/12.18, allocations: 1.959 MB / 4.174 GB, free: 21.93 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01692/12.2, allocations: 5.771 MB / 4.179 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007089/12.21, allocations: 2.762 MB / 4.182 GB, free: 20.39 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.537e-06/12.21, allocations: 3.969 kB / 4.182 GB, free: 20.39 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002752/12.21, allocations: 1.38 MB / 4.183 GB, free: 20.37 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004634/12.21, allocations: 0.6789 MB / 4.184 GB, free: 20.32 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/12.23, allocations: 4.222 MB / 4.188 GB, free: 19.28 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001967/12.23, allocations: 1.625 MB / 4.19 GB, free: 18.51 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003817/12.23, allocations: 1.535 MB / 4.191 GB, free: 18.46 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/12.24, allocations: 0.7944 MB / 4.192 GB, free: 18.45 MB / 0.5573 GB Notification: Performance of SimCode: time 1.804e-06/12.24, allocations: 0 / 4.192 GB, free: 18.45 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.591/12.83, allocations: 94.2 MB / 4.284 GB, free: 62.61 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/12.83, allocations: 250.7 kB / 4.284 GB, free: 62.28 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.677/18.5, allocations: 0 / 4.284 GB, free: 62.28 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat does not exist to compare? outputFormat=mat