Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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_serial,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",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.007077/0.007077, allocations: 169.5 kB / 15.13 MB, free: 6.027 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.422/1.422, allocations: 205.4 MB / 221.3 MB, free: 13.73 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.000817/0.0008167, allocations: 82.31 kB / 269.6 MB, free: 13.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7277/0.7277, allocations: 90.58 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.0003019, allocations: 8 kB / 485.3 MB, free: 1.945 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3782/0.3786, allocations: 66.27 MB / 0.5387 GB, free: 45.03 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5598/0.9384, allocations: 227 MB / 0.7603 GB, free: 6.977 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.02199/0.9605, allocations: 22.35 MB / 0.7822 GB, free: 6.824 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.9619, allocations: 29.56 kB / 0.7822 GB, free: 6.824 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001573/0.9635, allocations: 0.5775 MB / 0.7827 GB, free: 6.82 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.004791/0.9683, allocations: 1.636 MB / 0.7843 GB, free: 6.789 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.01031/0.9786, allocations: 2.86 MB / 0.7871 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.003692/0.9823, allocations: 1.899 MB / 0.789 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007031/0.9831, allocations: 292.5 kB / 0.7893 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002821/0.9859, allocations: 1.084 MB / 0.7903 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.9871, allocations: 0.6377 MB / 0.791 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.9873, allocations: 57.94 kB / 0.791 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0165/1.004, allocations: 6.122 MB / 0.797 GB, free: 6.461 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0007284/1.005, allocations: 218.6 kB / 0.7972 GB, free: 6.461 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001296/1.006, allocations: 265 kB / 0.7974 GB, free: 22.43 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.006596/1.013, allocations: 2.49 MB / 0.7999 GB, free: 22.23 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/1.013, allocations: 6.75 kB / 0.7999 GB, free: 22.22 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.306e-06/1.013, allocations: 0 / 0.7999 GB, free: 22.22 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.406e-05/1.013, allocations: 3.75 kB / 0.7999 GB, free: 22.22 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 286 * Number of variables: 286 Notification: Performance of Generate backend data structure: time 0.004411/1.017, allocations: 1.998 MB / 0.8018 GB, free: 21.2 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/1.017, allocations: 9.031 kB / 0.8019 GB, free: 21.2 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001984/1.017, allocations: 172.7 kB / 0.802 GB, free: 21.15 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002389/1.02, allocations: 345.7 kB / 0.8023 GB, free: 21.08 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/1.021, allocations: 0.6837 MB / 0.803 GB, free: 20.78 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003173/1.021, allocations: 353 kB / 0.8033 GB, free: 20.52 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/1.021, allocations: 122.3 kB / 0.8035 GB, free: 20.52 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/1.024, allocations: 1.391 MB / 0.8048 GB, free: 20.38 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/1.024, allocations: 6.891 kB / 0.8048 GB, free: 20.37 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/1.024, allocations: 48.91 kB / 0.8049 GB, free: 20.37 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/1.024, allocations: 28.09 kB / 0.8049 GB, free: 20.37 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002339/1.026, allocations: 1.166 MB / 0.806 GB, free: 20.34 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006234/1.033, allocations: 4.921 MB / 0.8108 GB, free: 17.84 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002736/1.035, allocations: 1.372 MB / 0.8122 GB, free: 17.79 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/1.037, allocations: 0.6782 MB / 0.8128 GB, free: 17.76 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003496/1.04, allocations: 4.146 MB / 0.8169 GB, free: 13.56 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/1.04, allocations: 46.69 kB / 0.8169 GB, free: 13.52 MB / 0.573 GB Notification: Performance of pre-optimization done (n=112): time 4.278e-06/1.04, allocations: 0 / 0.8169 GB, free: 13.52 MB / 0.573 GB Notification: Performance of matching and sorting (n=112): time 0.009147/1.049, allocations: 3.49 MB / 0.8204 GB, free: 12.34 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/1.049, allocations: 61.78 kB / 0.8204 GB, free: 12.27 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006732/1.05, allocations: 0.5597 MB / 0.821 GB, free: 12.06 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001097/1.05, allocations: 47.39 kB / 0.821 GB, free: 12.02 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/1.05, allocations: 467.6 kB / 0.8214 GB, free: 11.77 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/1.051, allocations: 386.3 kB / 0.8218 GB, free: 11.48 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.581e-05/1.051, allocations: 19.75 kB / 0.8218 GB, free: 11.48 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001236/1.051, allocations: 346.5 kB / 0.8222 GB, free: 11.16 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/1.052, allocations: 0.534 MB / 0.8227 GB, free: 11.08 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/1.053, allocations: 0.6243 MB / 0.8233 GB, free: 10.93 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/1.054, allocations: 0.5506 MB / 0.8238 GB, free: 10.86 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/1.054, allocations: 0 / 0.8238 GB, free: 10.86 MB / 0.573 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.005018/1.059, allocations: 2.106 MB / 0.8259 GB, free: 10.33 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/1.059, allocations: 6.156 kB / 0.8259 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/1.059, allocations: 3.75 kB / 0.8259 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/1.061, allocations: 475.5 kB / 0.8264 GB, free: 10.19 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/1.062, allocations: 292 kB / 0.8266 GB, free: 10.13 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008856/1.071, allocations: 7.221 MB / 0.8337 GB, free: 4.512 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/1.072, allocations: 161.4 kB / 0.8338 GB, free: 4.441 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001709/1.072, allocations: 79.62 kB / 0.8339 GB, free: 4.434 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 100 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 1,(3,88.9%) 1,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005551/1.073, allocations: 232.7 kB / 0.8341 GB, free: 4.316 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/1.073, allocations: 93.92 kB / 0.8342 GB, free: 4.266 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006098/1.079, allocations: 2.489 MB / 0.8367 GB, free: 3.57 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/1.079, allocations: 14.64 kB / 0.8367 GB, free: 3.57 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/1.079, allocations: 2.875 kB / 0.8367 GB, free: 3.57 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/1.079, allocations: 7.969 kB / 0.8367 GB, free: 3.562 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007509/1.087, allocations: 3.662 MB / 0.8403 GB, free: 2.359 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/1.087, allocations: 0 / 0.8403 GB, free: 2.359 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/1.088, allocations: 298 kB / 0.8405 GB, free: 2.305 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/1.09, allocations: 483.9 kB / 0.841 GB, free: 2.148 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/1.09, allocations: 53.86 kB / 0.8411 GB, free: 2.137 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008842/1.099, allocations: 7.227 MB / 0.8481 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.099, allocations: 0 / 0.8481 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006616/1.105, allocations: 2.858 MB / 0.8509 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/1.106, allocations: 178.6 kB / 0.8511 GB, free: 8.918 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/1.106, allocations: 26.38 kB / 0.8511 GB, free: 8.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009079/1.107, allocations: 103.1 kB / 0.8512 GB, free: 8.824 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/1.107, allocations: 108.5 kB / 0.8513 GB, free: 8.73 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/1.107, allocations: 85.58 kB / 0.8514 GB, free: 8.656 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004308/1.108, allocations: 388.4 kB / 0.8518 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.81e-07/1.108, allocations: 0 / 0.8518 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.002551/1.11, allocations: 0.8756 MB / 0.8526 GB, free: 7.574 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.h_out_B,mCV.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 101 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(3,88.9%) 1,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009678/1.12, allocations: 4.576 MB / 0.8571 GB, free: 3.762 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004698/1.125, allocations: 2.129 MB / 0.8592 GB, free: 1.938 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.125, allocations: 6.906 kB / 0.8592 GB, free: 1.934 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003104/1.128, allocations: 1.567 MB / 0.8607 GB, free: 0.5391 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/1.129, allocations: 243.2 kB / 0.8609 GB, free: 388 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/1.144, allocations: 7.933 MB / 0.8687 GB, free: 9.445 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006071/1.145, allocations: 1.093 MB / 0.8697 GB, free: 8.324 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001694/1.147, allocations: 301.8 kB / 0.87 GB, free: 8.062 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007824/1.147, allocations: 0.5235 MB / 0.8705 GB, free: 7.895 MB / 0.6042 GB Notification: Performance of SimCode: time 9.82e-07/1.147, allocations: 4 kB / 0.8705 GB, free: 7.891 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06541/1.213, allocations: 38.96 MB / 0.9086 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002114/1.213, allocations: 277.8 kB / 0.9089 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.31/4.523, allocations: 5.75 kB / 0.9089 GB, free: 0.9297 MB / 0.6355 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat does not exist to compare? outputFormat=mat