Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_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.001222/0.001222, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.691e-05/1.692e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 47.59 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.681/6.783, allocations: 2.808 GB / 3.162 GB, free: 52.35 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/6.783, allocations: 79.05 kB / 3.163 GB, free: 52.27 MB / 426.7 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.096/9.879, allocations: 0.7413 GB / 3.904 GB, free: 38 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.543e-06/9.879, allocations: 0 / 3.904 GB, free: 38 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001109/9.879, allocations: 37.78 kB / 3.904 GB, free: 38 MB / 458.7 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.0121/9.892, allocations: 2.727 MB / 3.907 GB, free: 36.79 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/9.892, allocations: 10.19 kB / 3.907 GB, free: 36.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004809/9.896, allocations: 0.6035 MB / 3.907 GB, free: 36.71 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/9.899, allocations: 1.065 MB / 3.908 GB, free: 36.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.222e-05/9.899, allocations: 47.91 kB / 3.908 GB, free: 36.39 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/9.899, allocations: 59.66 kB / 3.908 GB, free: 36.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002722/9.902, allocations: 1.75 MB / 3.91 GB, free: 36.38 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/9.904, allocations: 1.552 MB / 3.912 GB, free: 36.04 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/9.904, allocations: 6.219 kB / 3.912 GB, free: 36.04 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/9.905, allocations: 9.672 kB / 3.912 GB, free: 36.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.664e-05/9.905, allocations: 81.25 kB / 3.912 GB, free: 36.03 MB / 458.7 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.6769/10.58, allocations: 167.2 MB / 4.075 GB, free: 87.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002838/10.58, allocations: 1.119 MB / 4.076 GB, free: 87.68 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009733/10.59, allocations: 0.5671 MB / 4.077 GB, free: 87.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02969/10.62, allocations: 16.91 MB / 4.093 GB, free: 77.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/10.62, allocations: 48.47 kB / 4.093 GB, free: 77.23 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001463/10.62, allocations: 174.1 kB / 4.093 GB, free: 77.23 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=91): time 3.447e-06/10.62, allocations: 1.312 kB / 4.093 GB, free: 77.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=91): time 0.008255/10.62, allocations: 2.4 MB / 4.096 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/10.62, allocations: 218 kB / 4.096 GB, free: 76.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/10.63, allocations: 0.7398 MB / 4.097 GB, free: 76.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.461e-05/10.63, allocations: 35.39 kB / 4.097 GB, free: 76.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/10.63, allocations: 0.6299 MB / 4.097 GB, free: 76.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/10.63, allocations: 306.2 kB / 4.098 GB, free: 76.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/10.63, allocations: 0.5625 kB / 4.098 GB, free: 76.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.466e-05/10.63, allocations: 353.7 kB / 4.098 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006936/10.63, allocations: 0.5313 MB / 4.098 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009892/10.63, allocations: 0.8855 MB / 4.099 GB, free: 75.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00482/10.63, allocations: 1.191 MB / 4.1 GB, free: 75.62 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/10.63, allocations: 4.562 kB / 4.1 GB, free: 75.62 MB / 0.5105 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.006674/10.64, allocations: 2.299 MB / 4.103 GB, free: 75.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006422/10.64, allocations: 3.754 MB / 4.106 GB, free: 71.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/10.64, allocations: 11.62 kB / 4.106 GB, free: 71.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005345/10.65, allocations: 1.054 MB / 4.107 GB, free: 71.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000957/10.65, allocations: 279.5 kB / 4.108 GB, free: 71.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/10.65, allocations: 1.774 MB / 4.109 GB, free: 71.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/10.65, allocations: 183.2 kB / 4.11 GB, free: 71.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/10.65, allocations: 72.72 kB / 4.11 GB, free: 71.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.187e-06/10.65, allocations: 3.594 kB / 4.11 GB, free: 71.03 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00545/10.66, allocations: 1.761 MB / 4.111 GB, free: 70.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/10.66, allocations: 9.656 kB / 4.111 GB, free: 70.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000687/10.66, allocations: 188.7 kB / 4.112 GB, free: 70.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/10.66, allocations: 349.7 kB / 4.112 GB, free: 70.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006992/10.66, allocations: 0.7575 MB / 4.113 GB, free: 70.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/10.66, allocations: 149.5 kB / 4.113 GB, free: 70.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/10.66, allocations: 71.92 kB / 4.113 GB, free: 70.45 MB / 0.5105 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.0003121/10.66, allocations: 143.5 kB / 4.113 GB, free: 70.35 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005903/10.67, allocations: 1.842 MB / 4.115 GB, free: 70.24 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/10.67, allocations: 119.1 kB / 4.115 GB, free: 70.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007644/10.68, allocations: 3.878 MB / 4.119 GB, free: 69.92 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/10.68, allocations: 33.28 kB / 4.119 GB, free: 69.92 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/10.68, allocations: 3.391 kB / 4.119 GB, free: 69.92 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/10.68, allocations: 3.703 kB / 4.119 GB, free: 69.92 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009735/10.69, allocations: 5.314 MB / 4.124 GB, free: 69.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/10.69, allocations: 0 / 4.124 GB, free: 69.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/10.69, allocations: 114.8 kB / 4.124 GB, free: 69.49 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004326/10.69, allocations: 2.503 MB / 4.126 GB, free: 69.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/10.69, allocations: 7.375 kB / 4.126 GB, free: 69.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004709/10.7, allocations: 2.877 MB / 4.129 GB, free: 68.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/10.7, allocations: 0 / 4.129 GB, free: 68.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006795/10.7, allocations: 3.095 MB / 4.132 GB, free: 68.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000887/10.7, allocations: 467.5 kB / 4.133 GB, free: 68.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/10.7, allocations: 2.188 kB / 4.133 GB, free: 68.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000968/10.71, allocations: 103.5 kB / 4.133 GB, free: 68.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/10.71, allocations: 66.16 kB / 4.133 GB, free: 68.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-05/10.71, allocations: 38.52 kB / 4.133 GB, free: 68.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009872/10.71, allocations: 0.8364 MB / 4.134 GB, free: 68.14 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/10.71, allocations: 0 / 4.134 GB, free: 68.14 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007083/10.71, allocations: 1.864 MB / 4.136 GB, free: 68 MB / 0.5105 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.01509/10.73, allocations: 5.512 MB / 4.141 GB, free: 66.85 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004823/10.73, allocations: 2.321 MB / 4.143 GB, free: 66.82 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/10.73, allocations: 4.375 kB / 4.143 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001634/10.74, allocations: 0.9032 MB / 4.144 GB, free: 66.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/10.74, allocations: 490.1 kB / 4.145 GB, free: 66.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008433/10.75, allocations: 3.109 MB / 4.148 GB, free: 66.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007288/10.75, allocations: 1.396 MB / 4.149 GB, free: 65.33 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002653/10.75, allocations: 1.77 MB / 4.151 GB, free: 65.27 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006915/10.75, allocations: 0.5856 MB / 4.151 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of SimCode: time 5.08e-06/10.75, allocations: 4 kB / 4.151 GB, free: 65.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1261/10.88, allocations: 70.22 MB / 4.22 GB, free: 44.05 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003051/10.88, allocations: 170.8 kB / 4.22 GB, free: 43.85 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.529/15.41, allocations: 0 / 4.22 GB, free: 43.85 MB / 0.5105 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat