Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 198.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009616/0.000962, allocations: 96.73 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.993e-05, allocations: 4 kB / 343.8 MB, free: 8.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.126, allocations: 51.47 MB / 395.3 MB, free: 4.734 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.369/8.495, allocations: 2.813 GB / 3.199 GB, free: 57.67 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/8.495, allocations: 74.72 kB / 3.199 GB, free: 57.64 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.41/11.91, allocations: 0.7496 GB / 3.949 GB, free: 9.668 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.953e-06/11.91, allocations: 0 / 3.949 GB, free: 9.668 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001243/11.91, allocations: 32 kB / 3.949 GB, free: 9.637 MB / 474.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.01348/11.92, allocations: 2.731 MB / 3.952 GB, free: 6.867 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/11.92, allocations: 8.031 kB / 3.952 GB, free: 6.859 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004806/11.92, allocations: 0.6079 MB / 3.952 GB, free: 6.25 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/11.93, allocations: 1.074 MB / 3.953 GB, free: 5.152 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.45e-05/11.93, allocations: 45.38 kB / 3.954 GB, free: 5.109 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/11.93, allocations: 64 kB / 3.954 GB, free: 5.047 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002442/11.93, allocations: 1.746 MB / 3.955 GB, free: 3.297 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/11.93, allocations: 1.561 MB / 3.957 GB, free: 1.605 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/11.93, allocations: 3.938 kB / 3.957 GB, free: 1.602 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/11.93, allocations: 7.953 kB / 3.957 GB, free: 1.594 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.1e-05/11.93, allocations: 86 kB / 3.957 GB, free: 1.508 MB / 474.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.7844/12.72, allocations: 184.9 MB / 4.137 GB, free: 24.22 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002671/12.72, allocations: 1.123 MB / 4.139 GB, free: 24.18 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009734/12.72, allocations: 0.5685 MB / 4.139 GB, free: 24.17 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4546/13.17, allocations: 18.75 MB / 4.157 GB, free: 136.3 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/13.17, allocations: 46.92 kB / 4.157 GB, free: 136.3 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001653/13.18, allocations: 176.9 kB / 4.158 GB, free: 136.3 MB / 0.573 GB Notification: Performance of pre-optimization done (n=91): time 5.851e-06/13.18, allocations: 1.125 kB / 4.158 GB, free: 136.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=91): time 0.009129/13.19, allocations: 2.411 MB / 4.16 GB, free: 136.2 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/13.19, allocations: 223 kB / 4.16 GB, free: 136 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/13.19, allocations: 0.7429 MB / 4.161 GB, free: 135.8 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001148/13.19, allocations: 27.14 kB / 4.161 GB, free: 135.8 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/13.19, allocations: 0.6232 MB / 4.162 GB, free: 135.5 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/13.19, allocations: 308.8 kB / 4.162 GB, free: 135.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/13.19, allocations: 0 / 4.162 GB, free: 135.4 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.573e-05/13.19, allocations: 354.1 kB / 4.162 GB, free: 135.1 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000807/13.19, allocations: 0.535 MB / 4.163 GB, free: 135.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/13.19, allocations: 0.8864 MB / 4.164 GB, free: 134.7 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005431/13.2, allocations: 1.21 MB / 4.165 GB, free: 134.7 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.112e-05/13.2, allocations: 3.312 kB / 4.165 GB, free: 134.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.008349/13.2, allocations: 2.315 MB / 4.167 GB, free: 134.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009135/13.2, allocations: 3.752 MB / 4.171 GB, free: 130.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/13.2, allocations: 10.78 kB / 4.171 GB, free: 130.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0055/13.21, allocations: 1.047 MB / 4.172 GB, free: 130.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/13.21, allocations: 278.8 kB / 4.172 GB, free: 130.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004555/13.22, allocations: 1.786 MB / 4.174 GB, free: 130.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/13.22, allocations: 191.4 kB / 4.174 GB, free: 130.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002011/13.22, allocations: 72.61 kB / 4.174 GB, free: 130.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/13.22, allocations: 3.406 kB / 4.174 GB, free: 130.1 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005962/13.22, allocations: 1.769 MB / 4.176 GB, free: 130.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.6e-05/13.22, allocations: 10.12 kB / 4.176 GB, free: 130.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007509/13.23, allocations: 193.6 kB / 4.176 GB, free: 130 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/13.23, allocations: 347 kB / 4.176 GB, free: 130 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/13.23, allocations: 0.7611 MB / 4.177 GB, free: 129.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/13.23, allocations: 140.8 kB / 4.177 GB, free: 129.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/13.23, allocations: 70.44 kB / 4.177 GB, free: 129.5 MB / 0.573 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.0004815/13.23, allocations: 149.9 kB / 4.177 GB, free: 129.4 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006947/13.24, allocations: 1.868 MB / 4.179 GB, free: 129.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004659/13.24, allocations: 114.2 kB / 4.179 GB, free: 129.2 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009353/13.25, allocations: 3.879 MB / 4.183 GB, free: 129 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.707e-05/13.25, allocations: 33.25 kB / 4.183 GB, free: 129 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/13.25, allocations: 0.8438 kB / 4.183 GB, free: 129 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/13.25, allocations: 6.031 kB / 4.183 GB, free: 129 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/13.26, allocations: 5.328 MB / 4.188 GB, free: 128.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/13.26, allocations: 5.938 kB / 4.188 GB, free: 128.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000565/13.26, allocations: 115.6 kB / 4.188 GB, free: 128.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004658/13.27, allocations: 2.497 MB / 4.191 GB, free: 128.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002108/13.27, allocations: 14.08 kB / 4.191 GB, free: 128.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00547/13.27, allocations: 2.886 MB / 4.194 GB, free: 127.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/13.27, allocations: 5.188 kB / 4.194 GB, free: 127.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008194/13.28, allocations: 3.106 MB / 4.197 GB, free: 127.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/13.28, allocations: 466 kB / 4.197 GB, free: 127.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005052/13.28, allocations: 4.938 kB / 4.197 GB, free: 127.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/13.28, allocations: 96.48 kB / 4.197 GB, free: 127.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/13.28, allocations: 69.89 kB / 4.197 GB, free: 127.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/13.28, allocations: 35.66 kB / 4.197 GB, free: 127.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001735/13.29, allocations: 0.8349 MB / 4.198 GB, free: 127.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.483e-06/13.29, allocations: 0 / 4.198 GB, free: 127.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0121/13.3, allocations: 1.894 MB / 4.2 GB, free: 127.1 MB / 0.573 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.02175/13.32, allocations: 5.559 MB / 4.205 GB, free: 126 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006603/13.33, allocations: 2.319 MB / 4.208 GB, free: 125.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/13.33, allocations: 0.8438 kB / 4.208 GB, free: 125.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002358/13.33, allocations: 0.9076 MB / 4.209 GB, free: 125.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003667/13.33, allocations: 488.1 kB / 4.209 GB, free: 125.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/13.34, allocations: 3.111 MB / 4.212 GB, free: 125.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/13.34, allocations: 1.389 MB / 4.213 GB, free: 124.5 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003808/13.35, allocations: 1.78 MB / 4.215 GB, free: 124.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007063/13.35, allocations: 0.592 MB / 4.216 GB, free: 124.5 MB / 0.573 GB Notification: Performance of SimCode: time 1.483e-06/13.35, allocations: 0 / 4.216 GB, free: 124.5 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1331/13.48, allocations: 70.5 MB / 4.285 GB, free: 121.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/13.48, allocations: 164.7 kB / 4.285 GB, free: 121 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.96/18.44, allocations: 0 / 4.285 GB, free: 121 MB / 0.573 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat