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.001104/0.001104, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008242/0.0008243, allocations: 86.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.092e-05/4.095e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.128/6.235, allocations: 2.808 GB / 3.17 GB, free: 12.93 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/6.235, allocations: 76.72 kB / 3.17 GB, free: 12.86 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.193/9.428, allocations: 0.748 GB / 3.918 GB, free: 35.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.563e-06/9.428, allocations: 1.531 kB / 3.918 GB, free: 35.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002233/9.428, allocations: 32.34 kB / 3.918 GB, free: 35.71 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.01522/9.443, allocations: 2.721 MB / 3.92 GB, free: 34.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/9.444, allocations: 10.09 kB / 3.92 GB, free: 34.37 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008642/9.444, allocations: 168.1 kB / 3.921 GB, free: 34.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005086/9.45, allocations: 0.6061 MB / 3.921 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003194/9.453, allocations: 1.068 MB / 3.922 GB, free: 33.92 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/9.453, allocations: 92.81 kB / 3.922 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005339/9.453, allocations: 107.1 kB / 3.922 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005724/9.459, allocations: 2.253 MB / 3.925 GB, free: 33.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.79e-05/9.459, allocations: 5.75 kB / 3.925 GB, free: 33.57 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/9.46, allocations: 52.42 kB / 3.925 GB, free: 33.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/9.46, allocations: 84.12 kB / 3.925 GB, free: 33.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005179/9.465, allocations: 2.272 MB / 3.927 GB, free: 33.54 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.01306/9.478, allocations: 9.199 MB / 3.936 GB, free: 28.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/9.482, allocations: 1.759 MB / 3.938 GB, free: 28.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009068/9.483, allocations: 0.6842 MB / 3.938 GB, free: 28.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04248/9.525, allocations: 24.5 MB / 3.962 GB, free: 13.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/9.525, allocations: 48.91 kB / 3.962 GB, free: 13.13 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001586/9.527, allocations: 213.5 kB / 3.962 GB, free: 13.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=109): time 7.684e-06/9.527, allocations: 0 / 3.962 GB, free: 13.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=109): time 0.008617/9.535, allocations: 2.605 MB / 3.965 GB, free: 12.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/9.536, allocations: 220.5 kB / 3.965 GB, free: 12.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/9.537, allocations: 0.8206 MB / 3.966 GB, free: 12.51 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002244/9.537, allocations: 42.64 kB / 3.966 GB, free: 12.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004556/9.538, allocations: 0.5591 MB / 3.967 GB, free: 12.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004186/9.538, allocations: 387.2 kB / 3.967 GB, free: 11.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/9.538, allocations: 23.56 kB / 3.967 GB, free: 11.99 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/9.539, allocations: 362 kB / 3.967 GB, free: 11.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000951/9.539, allocations: 0.5495 MB / 3.968 GB, free: 11.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/9.541, allocations: 0.9087 MB / 3.969 GB, free: 11.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/9.542, allocations: 0.6695 MB / 3.969 GB, free: 11.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/9.542, allocations: 2.969 kB / 3.969 GB, free: 11.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003311/9.545, allocations: 1.86 MB / 3.971 GB, free: 11.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001688/9.547, allocations: 3.749 MB / 3.975 GB, free: 23.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/9.547, allocations: 10.56 kB / 3.975 GB, free: 23.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02611/9.573, allocations: 2.985 MB / 3.978 GB, free: 23.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/9.574, allocations: 283.9 kB / 3.978 GB, free: 23.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/9.577, allocations: 1.385 MB / 3.979 GB, free: 22.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002123/9.579, allocations: 144.2 kB / 3.98 GB, free: 22.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003856/9.58, allocations: 71.36 kB / 3.98 GB, free: 22.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/9.58, allocations: 3.438 kB / 3.98 GB, free: 22.49 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004044/9.584, allocations: 1.592 MB / 3.981 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.102e-05/9.584, allocations: 9.594 kB / 3.981 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008083/9.585, allocations: 194.4 kB / 3.981 GB, free: 22.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/9.586, allocations: 347.4 kB / 3.982 GB, free: 22.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009907/9.587, allocations: 0.7404 MB / 3.982 GB, free: 21.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/9.589, allocations: 135.8 kB / 3.983 GB, free: 21.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002722/9.59, allocations: 69.28 kB / 3.983 GB, free: 21.89 MB / 474.7 MB 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.0006501/9.59, allocations: 190.7 kB / 3.983 GB, free: 21.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004747/9.591, allocations: 130.9 kB / 3.983 GB, free: 21.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007341/9.598, allocations: 5.496 MB / 3.988 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.183e-05/9.598, allocations: 56.72 kB / 3.988 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.822e-05/9.598, allocations: 0 / 3.988 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/9.598, allocations: 10.89 kB / 3.988 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/9.61, allocations: 7.528 MB / 3.996 GB, free: 20.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/9.61, allocations: 0 / 3.996 GB, free: 20.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008578/9.611, allocations: 212 kB / 3.996 GB, free: 20.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02373/9.635, allocations: 4.285 MB / 4 GB, free: 20.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004199/9.635, allocations: 32.78 kB / 4 GB, free: 20.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003282/9.639, allocations: 2.354 MB / 4.002 GB, free: 18.88 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/9.639, allocations: 4.594 kB / 4.002 GB, free: 18.88 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006153/9.645, allocations: 3.498 MB / 4.006 GB, free: 16.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/9.647, allocations: 0.6524 MB / 4.007 GB, free: 15.66 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005791/9.647, allocations: 20 kB / 4.007 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001827/9.649, allocations: 125.9 kB / 4.007 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/9.649, allocations: 108.3 kB / 4.007 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/9.649, allocations: 43.7 kB / 4.007 GB, free: 15.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001974/9.651, allocations: 1.036 MB / 4.008 GB, free: 14.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/9.651, allocations: 0 / 4.008 GB, free: 14.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01038/9.662, allocations: 1.954 MB / 4.01 GB, free: 12.58 MB / 474.7 MB 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.01925/9.681, allocations: 5.77 MB / 4.015 GB, free: 7.555 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007381/9.689, allocations: 2.764 MB / 4.018 GB, free: 5.074 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/9.689, allocations: 0 / 4.018 GB, free: 5.074 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002857/9.692, allocations: 1.386 MB / 4.019 GB, free: 3.801 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/9.696, allocations: 0.6734 MB / 4.02 GB, free: 3.301 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3758/10.07, allocations: 4.256 MB / 4.024 GB, free: 48.06 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/10.07, allocations: 1.627 MB / 4.026 GB, free: 47.32 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004337/10.08, allocations: 1.531 MB / 4.027 GB, free: 47.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/10.08, allocations: 0.7917 MB / 4.028 GB, free: 47.3 MB / 474.7 MB Notification: Performance of SimCode: time 2.415e-06/10.08, allocations: 4.641 kB / 4.028 GB, free: 47.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1918/10.27, allocations: 94.04 MB / 4.12 GB, free: 40.68 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/10.27, allocations: 223 kB / 4.12 GB, free: 40.45 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.317/15.59, allocations: 0 / 4.12 GB, free: 40.45 MB / 474.7 MB (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