Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.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) 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(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization",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.001447/0.001447, allocations: 177.8 kB / 8.363 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 1.961/1.961, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001064/0.001064, allocations: 91.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.407e-05/2.416e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.334, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.887/8.221, allocations: 2.808 GB / 3.162 GB, free: 77.09 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/8.222, allocations: 75.95 kB / 3.162 GB, free: 77.07 MB / 427.1 MB [/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.615/11.84, allocations: 0.7413 GB / 3.903 GB, free: 6.613 MB / 459.1 MB Notification: Performance of FrontEnd: time 1.583e-06/11.84, allocations: 0 / 3.903 GB, free: 6.613 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0001365/11.84, allocations: 35.67 kB / 3.903 GB, free: 6.582 MB / 459.1 MB 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.01628/11.85, allocations: 2.714 MB / 3.906 GB, free: 3.828 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/11.85, allocations: 8.031 kB / 3.906 GB, free: 3.82 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00655/11.86, allocations: 0.6031 MB / 3.906 GB, free: 3.215 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003806/11.86, allocations: 1.063 MB / 3.907 GB, free: 2.129 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/11.86, allocations: 44 kB / 3.907 GB, free: 2.086 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003043/11.86, allocations: 61.03 kB / 3.907 GB, free: 2.027 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004829/11.87, allocations: 1.754 MB / 3.909 GB, free: 276 kB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3519/12.22, allocations: 1.553 MB / 3.911 GB, free: 36.92 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.14e-05/12.22, allocations: 8.594 kB / 3.911 GB, free: 36.92 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/12.22, allocations: 2.75 kB / 3.911 GB, free: 36.92 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000164/12.22, allocations: 82.48 kB / 3.911 GB, free: 36.92 MB / 459.1 MB 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.5329/12.75, allocations: 167.2 MB / 4.074 GB, free: 12.66 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003473/12.76, allocations: 1.121 MB / 4.075 GB, free: 12.62 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/12.76, allocations: 0.5663 MB / 4.076 GB, free: 12.61 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05389/12.81, allocations: 16.91 MB / 4.092 GB, free: 17.45 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.607e-05/12.81, allocations: 49.66 kB / 4.092 GB, free: 17.41 MB / 0.5421 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001807/12.82, allocations: 170.7 kB / 4.092 GB, free: 17.3 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=91): time 5.28e-06/12.82, allocations: 4 kB / 4.092 GB, free: 17.29 MB / 0.5421 GB Notification: Performance of matching and sorting (n=91): time 0.0138/12.83, allocations: 2.392 MB / 4.095 GB, free: 15.94 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/12.83, allocations: 225.2 kB / 4.095 GB, free: 15.68 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/12.83, allocations: 0.7472 MB / 4.096 GB, free: 15.19 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.0002181/12.83, allocations: 29.7 kB / 4.096 GB, free: 15.15 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004684/12.83, allocations: 0.6284 MB / 4.096 GB, free: 14.78 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003644/12.83, allocations: 305.4 kB / 4.097 GB, free: 14.59 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/12.83, allocations: 4 kB / 4.097 GB, free: 14.58 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.0001692/12.83, allocations: 362.9 kB / 4.097 GB, free: 14.25 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/12.83, allocations: 0.5298 MB / 4.097 GB, free: 13.99 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/12.83, allocations: 0.8867 MB / 4.098 GB, free: 13.27 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009063/12.84, allocations: 1.193 MB / 4.1 GB, free: 12.64 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.84e-05/12.84, allocations: 4 kB / 4.1 GB, free: 12.63 MB / 0.5421 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01219/12.86, allocations: 2.243 MB / 4.102 GB, free: 11.35 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.001536/12.86, allocations: 3.752 MB / 4.105 GB, free: 7.387 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.25e-05/12.86, allocations: 8 kB / 4.105 GB, free: 7.379 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0108/12.87, allocations: 1.055 MB / 4.106 GB, free: 6.754 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/12.87, allocations: 278.3 kB / 4.107 GB, free: 6.551 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007659/12.88, allocations: 1.773 MB / 4.108 GB, free: 5.371 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003364/12.88, allocations: 187.1 kB / 4.109 GB, free: 5.238 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/12.88, allocations: 68.17 kB / 4.109 GB, free: 5.191 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/12.88, allocations: 4 kB / 4.109 GB, free: 5.188 MB / 0.5421 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01009/12.89, allocations: 1.768 MB / 4.11 GB, free: 4.215 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.383e-05/12.89, allocations: 8 kB / 4.11 GB, free: 4.207 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/12.89, allocations: 188.2 kB / 4.111 GB, free: 4.094 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00318/12.9, allocations: 351.3 kB / 4.111 GB, free: 3.844 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/12.9, allocations: 0.7599 MB / 4.112 GB, free: 3.188 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/12.9, allocations: 142.4 kB / 4.112 GB, free: 3.086 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/12.9, allocations: 69.48 kB / 4.112 GB, free: 3.039 MB / 0.5421 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/12.9, allocations: 144.5 kB / 4.112 GB, free: 2.918 MB / 0.5421 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01087/12.91, allocations: 1.847 MB / 4.114 GB, free: 1.836 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/12.91, allocations: 118.6 kB / 4.114 GB, free: 1.719 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3733/13.29, allocations: 3.876 MB / 4.118 GB, free: 130.9 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.224e-05/13.29, allocations: 38.45 kB / 4.118 GB, free: 130.9 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/13.29, allocations: 0 / 4.118 GB, free: 130.9 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/13.29, allocations: 6.797 kB / 4.118 GB, free: 130.9 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/13.3, allocations: 5.306 MB / 4.123 GB, free: 130.6 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/13.3, allocations: 2.719 kB / 4.123 GB, free: 130.6 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/13.3, allocations: 117.4 kB / 4.123 GB, free: 130.6 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007278/13.31, allocations: 2.499 MB / 4.125 GB, free: 130.5 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002231/13.31, allocations: 10.34 kB / 4.125 GB, free: 130.5 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007773/13.32, allocations: 2.884 MB / 4.128 GB, free: 129.9 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/13.32, allocations: 0 / 4.128 GB, free: 129.9 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/13.33, allocations: 3.096 MB / 4.131 GB, free: 129.7 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/13.33, allocations: 468.3 kB / 4.132 GB, free: 129.5 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/13.33, allocations: 1.094 kB / 4.132 GB, free: 129.5 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/13.33, allocations: 97.45 kB / 4.132 GB, free: 129.5 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/13.33, allocations: 66.66 kB / 4.132 GB, free: 129.5 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/13.33, allocations: 34.73 kB / 4.132 GB, free: 129.5 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.001551/13.34, allocations: 0.8327 MB / 4.133 GB, free: 129.4 MB / 0.5421 GB Notification: Performance of sort global known variables: time 5.81e-07/13.34, allocations: 3.562 kB / 4.133 GB, free: 129.4 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.009213/13.35, allocations: 1.871 MB / 4.135 GB, free: 129.4 MB / 0.5421 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.02477/13.37, allocations: 5.506 MB / 4.14 GB, free: 128.3 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.007785/13.38, allocations: 2.293 MB / 4.142 GB, free: 128.3 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/13.38, allocations: 0 / 4.142 GB, free: 128.3 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.002656/13.38, allocations: 0.9098 MB / 4.143 GB, free: 128.2 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004529/13.39, allocations: 491.5 kB / 4.144 GB, free: 128.2 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/13.4, allocations: 3.139 MB / 4.147 GB, free: 127.5 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/13.4, allocations: 1.384 MB / 4.148 GB, free: 126.8 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/13.4, allocations: 0.6117 MB / 4.149 GB, free: 126.8 MB / 0.5421 GB Notification: Performance of SimCode: time 1.242e-06/13.4, allocations: 2.188 kB / 4.149 GB, free: 126.8 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.164/17.56, allocations: 59.2 MB / 4.206 GB, free: 123 MB / 0.5421 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat