Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.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/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso",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.001882/0.001882, allocations: 174.4 kB / 7.647 MB, free: 1.422 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.548/1.548, allocations: 205.3 MB / 213.4 MB, free: 13.71 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.0009674/0.0009674, allocations: 92.11 kB / 261.4 MB, free: 13.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8172/0.8172, allocations: 90.36 MB / 399.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.885e-05/1.887e-05, allocations: 4 kB / 472.3 MB, free: 3.359 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3895, allocations: 66.24 MB / 0.5259 GB, free: 29.1 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.598/9.988, allocations: 3.575 GB / 4.1 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000322/9.988, allocations: 87.28 kB / 4.101 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.414/12.4, allocations: 0.6403 GB / 4.741 GB, free: 25.98 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.184e-06/12.4, allocations: 0 / 4.741 GB, free: 25.98 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.00023/12.4, allocations: 42.73 kB / 4.741 GB, free: 25.94 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 385 * Number of variables: 385 Notification: Performance of Generate backend data structure: time 0.01472/12.42, allocations: 3.189 MB / 4.744 GB, free: 22.68 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/12.42, allocations: 8.031 kB / 4.744 GB, free: 22.68 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002946/12.42, allocations: 373.4 kB / 4.744 GB, free: 22.31 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/12.42, allocations: 0.9395 MB / 4.745 GB, free: 21.35 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/12.42, allocations: 52 kB / 4.745 GB, free: 21.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006287/12.42, allocations: 103.9 kB / 4.745 GB, free: 21.2 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003305/12.43, allocations: 1.217 MB / 4.747 GB, free: 19.98 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00365/12.43, allocations: 1.413 MB / 4.748 GB, free: 18.5 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.32e-05/12.43, allocations: 3.938 kB / 4.748 GB, free: 18.49 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000228/12.43, allocations: 4 kB / 4.748 GB, free: 18.49 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.651e-05/12.43, allocations: 62.86 kB / 4.748 GB, free: 18.43 MB / 0.5886 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.01162/12.44, allocations: 7.785 MB / 4.756 GB, free: 9.957 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002019/12.45, allocations: 1.012 MB / 4.757 GB, free: 8.934 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/12.45, allocations: 0.5442 MB / 4.757 GB, free: 8.391 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6181/13.06, allocations: 36.07 MB / 4.792 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001979/13.07, allocations: 0.6074 MB / 4.793 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=135): time 5.04e-06/13.07, allocations: 0 / 4.793 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of matching and sorting (n=135): time 0.005226/13.07, allocations: 1.604 MB / 4.795 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/13.07, allocations: 117.7 kB / 4.795 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/13.07, allocations: 0.6393 MB / 4.795 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001833/13.07, allocations: 27.23 kB / 4.795 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006134/13.07, allocations: 0.6702 MB / 4.796 GB, free: 54 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/13.07, allocations: 446.4 kB / 4.796 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/13.07, allocations: 1.312 kB / 4.796 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001207/13.08, allocations: 360.2 kB / 4.797 GB, free: 53.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007529/13.08, allocations: 387.2 kB / 4.797 GB, free: 53.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008546/13.08, allocations: 0.5965 MB / 4.798 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/13.08, allocations: 494.8 kB / 4.798 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/13.08, allocations: 4.719 kB / 4.798 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.003302/13.08, allocations: 1.386 MB / 4.8 GB, free: 53.08 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004927/13.08, allocations: 1.803 MB / 4.801 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/13.08, allocations: 3.688 kB / 4.801 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007172/13.08, allocations: 193.6 kB / 4.801 GB, free: 51.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/13.08, allocations: 303.3 kB / 4.802 GB, free: 51.17 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004766/13.09, allocations: 5.74 MB / 4.807 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/13.09, allocations: 161.1 kB / 4.808 GB, free: 46.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002487/13.09, allocations: 56.48 kB / 4.808 GB, free: 46.34 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/13.09, allocations: 3.219 kB / 4.808 GB, free: 46.34 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0034/13.09, allocations: 1.235 MB / 4.809 GB, free: 46.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/13.09, allocations: 7.094 kB / 4.809 GB, free: 46.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/13.09, allocations: 188.3 kB / 4.809 GB, free: 46.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/13.1, allocations: 289.2 kB / 4.809 GB, free: 46.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004472/13.1, allocations: 5.741 MB / 4.815 GB, free: 41.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/13.1, allocations: 143.1 kB / 4.815 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/13.1, allocations: 56.25 kB / 4.815 GB, free: 41.41 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 22 (boilerEspresso.phaseSeparator2_1.state_out[1].phase,boilerEspresso.phaseSeparator2_1.state_out[2].phase,tanValve.outlet.state.phase,$whenCondition2,$whenCondition1,boilerEspresso.phaseSeparator2_1.medium.phase,source.outlet.state.phase,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,flowResistance2.outlet.state.phase,tanValve2.outlet.state.phase,flowResistance1.outlet.state.phase,tanValve1.outlet.state.phase,flowResistance.outlet.state.phase,PID1.I.local_reset,PID2.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005451/13.1, allocations: 146.8 kB / 4.815 GB, free: 41.29 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003329/13.11, allocations: 1.258 MB / 4.816 GB, free: 41.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003511/13.11, allocations: 123.5 kB / 4.817 GB, free: 41.05 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006442/13.11, allocations: 3.932 MB / 4.82 GB, free: 40.66 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.69e-05/13.11, allocations: 52.81 kB / 4.82 GB, free: 40.66 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.4e-05/13.11, allocations: 3.844 kB / 4.82 GB, free: 40.66 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.84e-05/13.11, allocations: 9.109 kB / 4.82 GB, free: 40.66 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/13.12, allocations: 5.816 MB / 4.826 GB, free: 40.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/13.12, allocations: 3.438 kB / 4.826 GB, free: 40.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/13.12, allocations: 228.7 kB / 4.826 GB, free: 40.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/13.13, allocations: 0.8412 MB / 4.827 GB, free: 40.07 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/13.13, allocations: 20.7 kB / 4.827 GB, free: 40.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005472/13.13, allocations: 6.81 MB / 4.834 GB, free: 34.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/13.13, allocations: 0 / 4.834 GB, free: 34.73 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006935/13.14, allocations: 4.14 MB / 4.838 GB, free: 34.22 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/13.14, allocations: 410.7 kB / 4.838 GB, free: 34.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/13.14, allocations: 6.656 kB / 4.838 GB, free: 34.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/13.14, allocations: 118.2 kB / 4.838 GB, free: 34.03 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/13.14, allocations: 126.3 kB / 4.839 GB, free: 34.03 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/13.14, allocations: 46.8 kB / 4.839 GB, free: 34.03 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0008946/13.14, allocations: 484 kB / 4.839 GB, free: 33.92 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.31e-07/13.14, allocations: 3.906 kB / 4.839 GB, free: 33.92 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008377/13.15, allocations: 1.726 MB / 4.841 GB, free: 33.75 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (boilerEspresso.phaseSeparator2_1.M,boilerEspresso.phaseSeparator2_1.U_med,flowResistance.inlet.m_flow,tanValve1.inlet.m_flow,firstOrder1.y,tanValve2.inlet.m_flow,firstOrder2.y,firstOrder3.y,PID2.I.y,PID1.I.y) * Number of discrete variables: 30 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse18.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse22.region3boundary,$cse23.region3boundary,$whenCondition2,$whenCondition1,boilerEspresso.phaseSeparator2_1.medium.phase,source.outlet.state.phase,pulse.T_start,pulse.count,pulse1.T_start,pulse1.count) * Number of discrete states: 2 (pulse1.count,pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 7} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01643/13.17, allocations: 6.475 MB / 4.847 GB, free: 32.38 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006291/13.17, allocations: 3.344 MB / 4.85 GB, free: 31.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/13.17, allocations: 0 / 4.85 GB, free: 31.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002492/13.18, allocations: 1.623 MB / 4.852 GB, free: 30.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/13.18, allocations: 407.8 kB / 4.852 GB, free: 30.74 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/13.19, allocations: 4.086 MB / 4.856 GB, free: 29.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/13.19, allocations: 1.53 MB / 4.858 GB, free: 29.09 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002639/13.2, allocations: 1.073 MB / 4.859 GB, free: 29.05 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/13.2, allocations: 0.7869 MB / 4.86 GB, free: 29.05 MB / 0.6042 GB Notification: Performance of SimCode: time 1.092e-06/13.2, allocations: 0 / 4.86 GB, free: 29.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.135/13.33, allocations: 69.45 MB / 4.927 GB, free: 25.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002561/13.33, allocations: 162.2 kB / 4.928 GB, free: 25.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.026/18.36, allocations: 0 / 4.928 GB, free: 25.2 MB / 0.6042 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso_fmu --startTime=0 --stopTime=1000 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_Utilities_Tests_BoilerEspresso.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.Utilities.Tests.BoilerEspresso_res.mat does not exist to compare? outputFormat=mat