Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.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.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",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.001511/0.001511, allocations: 178.8 kB / 8.363 MB, free: 0.7109 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.008/2.008, allocations: 205.3 MB / 214.1 MB, free: 14.16 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.00172/0.001719, allocations: 92 kB / 262.1 MB, free: 13.89 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.323/0.323, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.928e-05, allocations: 0 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4142, allocations: 58.85 MB / 477.2 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.755/9.169, allocations: 2.817 GB / 3.283 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/9.17, allocations: 85.52 kB / 3.284 GB, free: 101.9 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 3.689/12.86, allocations: 0.7415 GB / 4.025 GB, free: 9.695 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.475e-06/12.86, allocations: 0 / 4.025 GB, free: 9.695 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0001822/12.86, allocations: 44.06 kB / 4.025 GB, free: 9.656 MB / 0.5265 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.01689/12.88, allocations: 2.728 MB / 4.028 GB, free: 6.891 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/12.88, allocations: 8.031 kB / 4.028 GB, free: 6.883 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007114/12.88, allocations: 0.6012 MB / 4.028 GB, free: 6.281 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004625/12.89, allocations: 1.066 MB / 4.029 GB, free: 5.188 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/12.89, allocations: 48.34 kB / 4.029 GB, free: 5.141 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005109/12.89, allocations: 63.95 kB / 4.029 GB, free: 5.078 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005619/12.89, allocations: 1.742 MB / 4.031 GB, free: 3.332 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004867/12.9, allocations: 1.562 MB / 4.033 GB, free: 1.641 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.493e-05/12.9, allocations: 4 kB / 4.033 GB, free: 1.637 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/12.9, allocations: 4 kB / 4.033 GB, free: 1.633 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001947/12.9, allocations: 82 kB / 4.033 GB, free: 1.551 MB / 0.5265 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.982/13.88, allocations: 167.2 MB / 4.196 GB, free: 20.24 MB / 0.6046 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/13.89, allocations: 1.125 MB / 4.197 GB, free: 20.2 MB / 0.6046 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/13.89, allocations: 0.5691 MB / 4.198 GB, free: 20.19 MB / 0.6046 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06716/13.95, allocations: 16.9 MB / 4.214 GB, free: 25.21 MB / 0.6202 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.457e-05/13.95, allocations: 46.62 kB / 4.214 GB, free: 25.17 MB / 0.6202 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002476/13.96, allocations: 171.5 kB / 4.214 GB, free: 25.14 MB / 0.6202 GB Notification: Performance of pre-optimization done (n=91): time 1.201e-05/13.96, allocations: 0 / 4.214 GB, free: 25.14 MB / 0.6202 GB Notification: Performance of matching and sorting (n=91): time 0.02359/13.98, allocations: 2.4 MB / 4.217 GB, free: 25.01 MB / 0.6202 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/13.98, allocations: 218.2 kB / 4.217 GB, free: 24.75 MB / 0.6202 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/13.98, allocations: 0.7414 MB / 4.218 GB, free: 24.61 MB / 0.6202 GB Notification: Performance of collectPreVariables (initialization): time 0.0004905/13.98, allocations: 33.67 kB / 4.218 GB, free: 24.57 MB / 0.6202 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007398/13.98, allocations: 0.6278 MB / 4.218 GB, free: 24.25 MB / 0.6202 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007887/13.99, allocations: 312.3 kB / 4.219 GB, free: 24.1 MB / 0.6202 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/13.99, allocations: 0 / 4.219 GB, free: 24.1 MB / 0.6202 GB Notification: Performance of setup shared object (initialization): time 0.0002866/13.99, allocations: 364.1 kB / 4.219 GB, free: 23.78 MB / 0.6202 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/13.99, allocations: 0.5305 MB / 4.22 GB, free: 23.78 MB / 0.6202 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002455/13.99, allocations: 0.8847 MB / 4.22 GB, free: 23.38 MB / 0.6202 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/14, allocations: 1.194 MB / 4.222 GB, free: 23.35 MB / 0.6202 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-05/14, allocations: 3.531 kB / 4.222 GB, free: 23.35 MB / 0.6202 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01742/14.02, allocations: 2.241 MB / 4.224 GB, free: 23.24 MB / 0.6202 GB Notification: Performance of prepare postOptimizeDAE: time 0.002077/14.02, allocations: 3.75 MB / 4.227 GB, free: 19.3 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.523e-05/14.02, allocations: 10.62 kB / 4.227 GB, free: 19.3 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01376/14.04, allocations: 1.056 MB / 4.228 GB, free: 19.25 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002784/14.04, allocations: 274.2 kB / 4.229 GB, free: 19.25 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/14.05, allocations: 1.774 MB / 4.23 GB, free: 18.71 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/14.05, allocations: 185.5 kB / 4.231 GB, free: 18.69 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/14.05, allocations: 74.83 kB / 4.231 GB, free: 18.69 MB / 0.6202 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/14.05, allocations: 6.109 kB / 4.231 GB, free: 18.69 MB / 0.6202 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01004/14.06, allocations: 1.761 MB / 4.232 GB, free: 18.63 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/14.06, allocations: 10.84 kB / 4.232 GB, free: 18.63 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/14.07, allocations: 186.9 kB / 4.233 GB, free: 18.62 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002999/14.07, allocations: 351.2 kB / 4.233 GB, free: 18.61 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/14.07, allocations: 0.7605 MB / 4.234 GB, free: 18.09 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/14.07, allocations: 143.2 kB / 4.234 GB, free: 18.08 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/14.07, allocations: 71.78 kB / 4.234 GB, free: 18.07 MB / 0.6202 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,pump.heatTransfer.states[1].phase,source.medium.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.0005429/14.07, allocations: 150.6 kB / 4.234 GB, free: 17.96 MB / 0.6202 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01086/14.08, allocations: 1.846 MB / 4.236 GB, free: 17.84 MB / 0.6202 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003916/14.09, allocations: 113.3 kB / 4.236 GB, free: 17.78 MB / 0.6202 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/14.1, allocations: 3.868 MB / 4.24 GB, free: 17.48 MB / 0.6202 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.359e-05/14.1, allocations: 35.84 kB / 4.24 GB, free: 17.48 MB / 0.6202 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/14.1, allocations: 2.953 kB / 4.24 GB, free: 17.48 MB / 0.6202 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/14.1, allocations: 3.891 kB / 4.24 GB, free: 17.48 MB / 0.6202 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/14.11, allocations: 5.321 MB / 4.245 GB, free: 16.36 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/14.11, allocations: 0 / 4.245 GB, free: 16.36 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009503/14.12, allocations: 117.1 kB / 4.245 GB, free: 16.27 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007328/14.12, allocations: 2.499 MB / 4.248 GB, free: 14.5 MB / 0.6202 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/14.12, allocations: 13.73 kB / 4.248 GB, free: 14.49 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00789/14.13, allocations: 2.88 MB / 4.25 GB, free: 12.8 MB / 0.6202 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/14.13, allocations: 1.031 kB / 4.25 GB, free: 12.8 MB / 0.6202 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/14.14, allocations: 3.09 MB / 4.253 GB, free: 11.01 MB / 0.6202 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/14.14, allocations: 467.7 kB / 4.254 GB, free: 10.72 MB / 0.6202 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003166/14.14, allocations: 0 / 4.254 GB, free: 10.72 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00182/14.15, allocations: 100.6 kB / 4.254 GB, free: 10.66 MB / 0.6202 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/14.15, allocations: 65.98 kB / 4.254 GB, free: 10.62 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/14.15, allocations: 34.47 kB / 4.254 GB, free: 10.6 MB / 0.6202 GB Notification: Performance of sorting global known variables: time 0.001584/14.15, allocations: 0.8351 MB / 4.255 GB, free: 10.1 MB / 0.6202 GB Notification: Performance of sort global known variables: time 5.91e-07/14.15, allocations: 0 / 4.255 GB, free: 10.1 MB / 0.6202 GB Notification: Performance of remove unused functions: time 0.008774/14.16, allocations: 1.87 MB / 4.257 GB, free: 8.582 MB / 0.6202 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.02384/14.18, allocations: 5.507 MB / 4.262 GB, free: 4.809 MB / 0.6202 GB Notification: Performance of simCode: created initialization part: time 0.007373/14.19, allocations: 2.29 MB / 4.264 GB, free: 3.543 MB / 0.6202 GB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/14.19, allocations: 0 / 4.264 GB, free: 3.543 MB / 0.6202 GB Notification: Performance of simCode: created simulation system equations: time 0.002806/14.19, allocations: 0.911 MB / 4.265 GB, free: 3.066 MB / 0.6202 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004781/14.2, allocations: 495.8 kB / 4.266 GB, free: 2.801 MB / 0.6202 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/14.21, allocations: 3.141 MB / 4.269 GB, free: 0.5703 MB / 0.6202 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4119/14.62, allocations: 1.384 MB / 4.27 GB, free: 136.6 MB / 0.6202 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/14.62, allocations: 0.6082 MB / 4.271 GB, free: 136.6 MB / 0.6202 GB Notification: Performance of SimCode: time 1.222e-06/14.62, allocations: 0 / 4.271 GB, free: 136.6 MB / 0.6202 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.253/18.87, allocations: 59.2 MB / 4.328 GB, free: 133.7 MB / 0.6202 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat does not exist to compare? outputFormat=mat