Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.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,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",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.009599/0.009599, allocations: 169.8 kB / 15.12 MB, free: 5.559 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.817/1.817, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0009669/0.0009667, allocations: 90.84 kB / 269.6 MB, free: 13.35 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.9003/0.9003, allocations: 90.58 MB / 408.4 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.0003403/0.0003404, allocations: 8 kB / 485.3 MB, free: 1.973 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4927/0.4931, allocations: 66.29 MB / 0.5387 GB, free: 45.49 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.2379/0.7311, allocations: 166.6 MB / 0.7013 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.02626/0.7574, allocations: 16.8 MB / 0.7177 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.7593, allocations: 19.88 kB / 0.7178 GB, free: 4.164 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001961/0.7612, allocations: 453.8 kB / 0.7182 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.005655/0.7669, allocations: 1.461 MB / 0.7196 GB, free: 2.254 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.008237/0.7752, allocations: 2.229 MB / 0.7218 GB, free: 44 kB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002183/0.7774, allocations: 0.9126 MB / 0.7227 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005338/0.7779, allocations: 226.2 kB / 0.7229 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002068/0.78, allocations: 0.8455 MB / 0.7237 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008528/0.7809, allocations: 434 kB / 0.7241 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002139/0.7811, allocations: 40 kB / 0.7242 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009809/0.7909, allocations: 4.241 MB / 0.7283 GB, free: 9.34 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0004652/0.7914, allocations: 159.3 kB / 0.7285 GB, free: 9.184 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0005511/0.792, allocations: 205.1 kB / 0.7287 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.005356/0.7974, allocations: 1.9 MB / 0.7305 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.7974, allocations: 0 / 0.7305 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.984e-06/0.7974, allocations: 0 / 0.7305 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.344e-05/0.7975, allocations: 4 kB / 0.7305 GB, free: 7.074 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00469/0.8022, allocations: 1.575 MB / 0.7321 GB, free: 5.449 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6e-05/0.8023, allocations: 19.97 kB / 0.7321 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003985/0.8027, allocations: 131.2 kB / 0.7322 GB, free: 5.293 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/0.8047, allocations: 234.5 kB / 0.7324 GB, free: 5.062 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.806, allocations: 0.5472 MB / 0.733 GB, free: 4.477 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002767/0.8063, allocations: 200.8 kB / 0.7332 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/0.8066, allocations: 88.95 kB / 0.7333 GB, free: 4.168 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.8091, allocations: 0.9757 MB / 0.7342 GB, free: 3.172 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.8091, allocations: 0 / 0.7342 GB, free: 3.172 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.8093, allocations: 36 kB / 0.7342 GB, free: 3.137 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.8093, allocations: 24 kB / 0.7343 GB, free: 3.113 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002308/0.8116, allocations: 0.7885 MB / 0.735 GB, free: 2.324 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006277/0.8179, allocations: 3.667 MB / 0.7386 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.8202, allocations: 0.9396 MB / 0.7395 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001332/0.8216, allocations: 1.296 MB / 0.7408 GB, free: 11.85 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.8216, allocations: 44.41 kB / 0.7408 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=83): time 3.887e-06/0.8216, allocations: 3.938 kB / 0.7408 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=83): time 0.006248/0.8279, allocations: 2.372 MB / 0.7432 GB, free: 9.312 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.828, allocations: 60.06 kB / 0.7432 GB, free: 9.242 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006995/0.8287, allocations: 495.2 kB / 0.7437 GB, free: 8.75 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.049e-05/0.8288, allocations: 41.7 kB / 0.7437 GB, free: 8.703 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002946/0.8291, allocations: 380.3 kB / 0.7441 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000292/0.8294, allocations: 283.8 kB / 0.7444 GB, free: 8.043 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.8294, allocations: 16 kB / 0.7444 GB, free: 8.027 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002031/0.8296, allocations: 382.8 kB / 0.7447 GB, free: 7.645 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008184/0.8305, allocations: 345.8 kB / 0.7451 GB, free: 7.305 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008305/0.8313, allocations: 419.1 kB / 0.7455 GB, free: 6.883 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008633/0.8322, allocations: 374.9 kB / 0.7458 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.8322, allocations: 0 / 0.7458 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003436/0.8356, allocations: 1.342 MB / 0.7471 GB, free: 5.156 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.8357, allocations: 4 kB / 0.7471 GB, free: 5.152 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.8357, allocations: 4.828 kB / 0.7471 GB, free: 5.148 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009075/0.8366, allocations: 274.4 kB / 0.7474 GB, free: 4.871 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008892/0.8375, allocations: 199.7 kB / 0.7476 GB, free: 4.676 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3224/1.16, allocations: 5.09 MB / 0.7526 GB, free: 178.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000926/1.161, allocations: 100.9 kB / 0.7527 GB, free: 178.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/1.161, allocations: 62.3 kB / 0.7527 GB, free: 178.7 MB / 0.5573 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 (80): * Single equations (assignments): 75 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003616/1.161, allocations: 211.2 kB / 0.7529 GB, free: 178.6 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/1.162, allocations: 72.91 kB / 0.753 GB, free: 178.6 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003977/1.165, allocations: 1.64 MB / 0.7546 GB, free: 178.5 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/1.166, allocations: 8.531 kB / 0.7546 GB, free: 178.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/1.166, allocations: 2.625 kB / 0.7546 GB, free: 178.5 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/1.166, allocations: 3.234 kB / 0.7546 GB, free: 178.5 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004538/1.17, allocations: 2.516 MB / 0.7571 GB, free: 178.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/1.17, allocations: 0 / 0.7571 GB, free: 178.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009163/1.171, allocations: 208.2 kB / 0.7573 GB, free: 178.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007381/1.172, allocations: 272.6 kB / 0.7575 GB, free: 178.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.951e-05/1.172, allocations: 51.48 kB / 0.7576 GB, free: 178.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005812/1.178, allocations: 5.101 MB / 0.7626 GB, free: 174.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.178, allocations: 0 / 0.7626 GB, free: 174.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/1.182, allocations: 1.916 MB / 0.7644 GB, free: 174 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003212/1.182, allocations: 162 kB / 0.7646 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/1.182, allocations: 23.45 kB / 0.7646 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/1.183, allocations: 59.38 kB / 0.7647 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/1.183, allocations: 81.38 kB / 0.7647 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/1.183, allocations: 61.95 kB / 0.7648 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003971/1.184, allocations: 339.9 kB / 0.7651 GB, free: 173.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/1.184, allocations: 0 / 0.7651 GB, free: 173.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002159/1.186, allocations: 0.6908 MB / 0.7658 GB, free: 173.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.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 (81): * Single equations (assignments): 76 * 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 {(1,100.0%) 4,(1,100.0%) 4,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006821/1.193, allocations: 3.524 MB / 0.7692 GB, free: 172.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003056/1.196, allocations: 1.434 MB / 0.7706 GB, free: 171.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.196, allocations: 0 / 0.7706 GB, free: 171.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001881/1.198, allocations: 1.061 MB / 0.7717 GB, free: 171.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/1.199, allocations: 189.1 kB / 0.7719 GB, free: 171.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.211, allocations: 6.441 MB / 0.7781 GB, free: 167.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007083/1.212, allocations: 1.015 MB / 0.7791 GB, free: 167.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001297/1.213, allocations: 233.6 kB / 0.7794 GB, free: 167.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006691/1.214, allocations: 400.5 kB / 0.7797 GB, free: 166.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.062e-06/1.214, allocations: 3.938 kB / 0.7797 GB, free: 166.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06693/1.281, allocations: 30.8 MB / 0.8098 GB, free: 153.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003357/1.281, allocations: 270.4 kB / 0.8101 GB, free: 153.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.303/4.584, allocations: 0 / 0.8101 GB, free: 153.2 MB / 0.5573 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat does not exist to compare? outputFormat=mat