Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.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.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",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.001053/0.001053, allocations: 172.9 kB / 7.646 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.631/1.631, allocations: 205.3 MB / 213.4 MB, free: 13.75 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.0009119/0.0009121, allocations: 88.55 kB / 261.4 MB, free: 13.44 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.8632/0.8632, allocations: 90.36 MB / 399.7 MB, free: 12.12 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.479e-05/1.481e-05, allocations: 0 / 472.3 MB, free: 3.379 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3899, allocations: 66.26 MB / 0.5259 GB, free: 28.92 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.753/2.143, allocations: 0.7551 GB / 1.281 GB, free: 112.2 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/2.143, allocations: 75.97 kB / 1.281 GB, free: 112.1 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.703/3.846, allocations: 439.6 MB / 1.71 GB, free: 103.6 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.833e-06/3.846, allocations: 0 / 1.71 GB, free: 103.6 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.776e-05/3.846, allocations: 26.33 kB / 1.71 GB, free: 103.6 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.006133/3.852, allocations: 2.19 MB / 1.713 GB, free: 102.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/3.853, allocations: 7.812 kB / 1.713 GB, free: 102.4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/3.854, allocations: 201.6 kB / 1.713 GB, free: 102.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008154/3.855, allocations: 486.5 kB / 1.713 GB, free: 102.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/3.855, allocations: 169.1 kB / 1.713 GB, free: 102 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/3.855, allocations: 38.19 kB / 1.713 GB, free: 102 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008402/3.856, allocations: 0.4976 MB / 1.714 GB, free: 102 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008794/3.857, allocations: 0.5367 MB / 1.714 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/3.857, allocations: 1.656 kB / 1.714 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.602e-05/3.857, allocations: 0 / 1.714 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/3.857, allocations: 18.73 kB / 1.714 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002867/3.86, allocations: 2.666 MB / 1.717 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007235/3.861, allocations: 0.5214 MB / 1.718 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003304/3.861, allocations: 278.3 kB / 1.718 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004769/3.862, allocations: 0.7841 MB / 1.719 GB, free: 99.64 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/3.862, allocations: 41.5 kB / 1.719 GB, free: 99.61 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=63): time 2.294e-06/3.862, allocations: 0 / 1.719 GB, free: 99.61 MB / 0.5886 GB Notification: Performance of matching and sorting (n=63): time 0.002536/3.864, allocations: 0.9111 MB / 1.72 GB, free: 99.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/3.864, allocations: 59.12 kB / 1.72 GB, free: 99.44 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/3.864, allocations: 303.4 kB / 1.72 GB, free: 99.33 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/3.864, allocations: 25.7 kB / 1.72 GB, free: 99.3 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/3.865, allocations: 315.3 kB / 1.72 GB, free: 99.14 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/3.865, allocations: 207.7 kB / 1.72 GB, free: 99 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/3.865, allocations: 0 / 1.72 GB, free: 99 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.477e-05/3.865, allocations: 365.8 kB / 1.721 GB, free: 98.69 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/3.865, allocations: 197.4 kB / 1.721 GB, free: 98.69 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/3.865, allocations: 201.3 kB / 1.721 GB, free: 98.68 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008963/3.866, allocations: 274.4 kB / 1.721 GB, free: 98.68 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/3.866, allocations: 0 / 1.721 GB, free: 98.68 MB / 0.5886 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002352/3.869, allocations: 0.9514 MB / 1.722 GB, free: 98.58 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/3.869, allocations: 6.062 kB / 1.722 GB, free: 98.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/3.869, allocations: 7.906 kB / 1.722 GB, free: 98.57 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000427/3.869, allocations: 145.3 kB / 1.722 GB, free: 98.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006544/3.87, allocations: 147.5 kB / 1.723 GB, free: 98.55 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/3.873, allocations: 4.359 MB / 1.727 GB, free: 94.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/3.874, allocations: 71.62 kB / 1.727 GB, free: 94.92 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.05e-05/3.874, allocations: 44.44 kB / 1.727 GB, free: 94.92 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001335/3.874, allocations: 113 kB / 1.727 GB, free: 94.8 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002416/3.876, allocations: 0.9346 MB / 1.728 GB, free: 94.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/3.876, allocations: 50.91 kB / 1.728 GB, free: 94.68 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/3.879, allocations: 1.178 MB / 1.729 GB, free: 94.57 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/3.88, allocations: 6.844 kB / 1.729 GB, free: 94.57 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/3.88, allocations: 3.594 kB / 1.729 GB, free: 94.57 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/3.88, allocations: 7.688 kB / 1.729 GB, free: 94.57 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/3.883, allocations: 1.85 MB / 1.731 GB, free: 94.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/3.883, allocations: 0 / 1.731 GB, free: 94.21 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006892/3.884, allocations: 152.3 kB / 1.731 GB, free: 94.21 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003826/3.884, allocations: 153.2 kB / 1.731 GB, free: 94.19 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.2e-05/3.884, allocations: 30.02 kB / 1.731 GB, free: 94.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003193/3.887, allocations: 4.349 MB / 1.736 GB, free: 90.58 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/3.887, allocations: 3.359 kB / 1.736 GB, free: 90.58 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003039/3.89, allocations: 1.38 MB / 1.737 GB, free: 90.32 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/3.891, allocations: 141.2 kB / 1.737 GB, free: 90.19 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/3.891, allocations: 3.625 kB / 1.737 GB, free: 90.19 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/3.891, allocations: 53 kB / 1.737 GB, free: 90.18 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/3.892, allocations: 62.64 kB / 1.737 GB, free: 90.18 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.299e-05/3.892, allocations: 44.39 kB / 1.737 GB, free: 90.18 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0002419/3.892, allocations: 235.1 kB / 1.737 GB, free: 90.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.51e-07/3.892, allocations: 0 / 1.737 GB, free: 90.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.002409/3.894, allocations: 0.6757 MB / 1.738 GB, free: 89.95 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (counterFlowNTU.inletA.m_flow,counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,flowResistanceB.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006844/3.901, allocations: 3.766 MB / 1.742 GB, free: 88.73 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001805/3.903, allocations: 1.063 MB / 1.743 GB, free: 88.34 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/3.903, allocations: 3.938 kB / 1.743 GB, free: 88.34 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001243/3.904, allocations: 0.8472 MB / 1.744 GB, free: 87.96 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/3.905, allocations: 121.7 kB / 1.744 GB, free: 87.95 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/3.908, allocations: 1.441 MB / 1.745 GB, free: 87.46 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/3.909, allocations: 0.9356 MB / 1.746 GB, free: 86.75 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.000844/3.91, allocations: 188.7 kB / 1.746 GB, free: 86.73 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004805/3.91, allocations: 298.4 kB / 1.747 GB, free: 86.73 MB / 0.5886 GB Notification: Performance of SimCode: time 1.142e-06/3.91, allocations: 0 / 1.747 GB, free: 86.73 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05091/3.961, allocations: 28.49 MB / 1.774 GB, free: 78.86 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002143/3.961, allocations: 209.7 kB / 1.775 GB, free: 78.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.198/7.159, allocations: 0 / 1.775 GB, free: 78.57 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.mat does not exist to compare? outputFormat=mat