Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.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: translateModel(ThermofluidStream.Examples.SimpleCoolingCycle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="PI.x|PID.I.y|Time|combiTimeTable.nextTimeEvent|combiTimeTable.nextTimeEventScaled|fan.m_flow|flexVolume.M|flexVolume.U_med|heatCapacitor.T|heatExchange_CounterFlowNTU.h_out_A|heatExchange_CounterFlowNTU.h_out_B|pump.m_flow|pump.omega|speed.phi|speed1.phi|speed1.w",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle") translateModel(ThermofluidStream.Examples.SimpleCoolingCycle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="PI.x|PID.I.y|Time|combiTimeTable.nextTimeEvent|combiTimeTable.nextTimeEventScaled|fan.m_flow|flexVolume.M|flexVolume.U_med|heatCapacitor.T|heatExchange_CounterFlowNTU.h_out_A|heatExchange_CounterFlowNTU.h_out_B|pump.m_flow|pump.omega|speed.phi|speed1.phi|speed1.w",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008747/0.0008748, allocations: 170.5 kB / 16.11 MB, free: 5.695 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.237/1.237, allocations: 205 MB / 221.9 MB, free: 9.133 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.0007115/0.0007114, allocations: 96.44 kB / 269.9 MB, free: 8.664 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.6271/0.6271, allocations: 90.51 MB / 408.3 MB, free: 3.926 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002785, allocations: 8 kB / 484.9 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2296, allocations: 65.81 MB / 0.5378 GB, free: 34.9 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleCoolingCycle): time 0.3828/0.6124, allocations: 208.7 MB / 0.7416 GB, free: 0.793 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.02535/0.6378, allocations: 31.3 MB / 0.7721 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.6397, allocations: 55.34 kB / 0.7722 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001934/0.6417, allocations: 0.8274 MB / 0.773 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.00364/0.6453, allocations: 1.385 MB / 0.7744 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.005676/0.651, allocations: 2.267 MB / 0.7766 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002843/0.6539, allocations: 2.949 MB / 0.7795 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000741/0.6546, allocations: 0.4961 MB / 0.7799 GB, free: 10.9 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.6563, allocations: 0.9896 MB / 0.7809 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008697/0.6571, allocations: 0.9408 MB / 0.7818 GB, free: 10 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.6573, allocations: 72.25 kB / 0.7819 GB, free: 10 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004674/0.662, allocations: 2.112 MB / 0.784 GB, free: 9.164 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003279/0.6623, allocations: 331 kB / 0.7843 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0008353/0.6632, allocations: 0.8811 MB / 0.7851 GB, free: 8.141 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.004315/0.6675, allocations: 3.387 MB / 0.7884 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.6675, allocations: 0 / 0.7884 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.082e-06/0.6675, allocations: 0 / 0.7884 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.825e-05/0.6675, allocations: 0 / 0.7884 GB, free: 4.984 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004002/0.6715, allocations: 2.284 MB / 0.7907 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.6716, allocations: 14.66 kB / 0.7907 GB, free: 2.664 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.6732, allocations: 325.1 kB / 0.791 GB, free: 2.344 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.6745, allocations: 0.9842 MB / 0.792 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002858/0.6748, allocations: 315.8 kB / 0.7923 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/0.675, allocations: 159.9 kB / 0.7924 GB, free: 0.8633 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003004/0.678, allocations: 1.781 MB / 0.7941 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.78e-05/0.6781, allocations: 4 kB / 0.7942 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.6782, allocations: 64 kB / 0.7942 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.175e-05/0.6783, allocations: 40 kB / 0.7943 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003007/0.6813, allocations: 1.585 MB / 0.7958 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008929/0.6902, allocations: 7.376 MB / 0.803 GB, free: 5.555 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.6931, allocations: 1.636 MB / 0.8046 GB, free: 3.906 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.6945, allocations: 0.7588 MB / 0.8053 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006638/0.7011, allocations: 5.915 MB / 0.8111 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/0.7029, allocations: 0.9108 MB / 0.812 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=150): time 4.719e-06/0.7029, allocations: 0 / 0.812 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=150): time 0.01159/0.7145, allocations: 3.912 MB / 0.8158 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/0.7146, allocations: 145.8 kB / 0.816 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.7158, allocations: 1.035 MB / 0.817 GB, free: 6.402 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.7159, allocations: 57.64 kB / 0.817 GB, free: 6.34 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005324/0.7165, allocations: 0.7466 MB / 0.8178 GB, free: 5.586 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.7168, allocations: 0.5059 MB / 0.8183 GB, free: 5.082 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/0.7169, allocations: 35.94 kB / 0.8183 GB, free: 5.047 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.7171, allocations: 357.9 kB / 0.8186 GB, free: 4.691 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.7184, allocations: 0.5973 MB / 0.8192 GB, free: 4.094 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.7199, allocations: 0.8692 MB / 0.8201 GB, free: 3.133 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/0.7227, allocations: 1.472 MB / 0.8215 GB, free: 1.598 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.7227, allocations: 4 kB / 0.8215 GB, free: 1.594 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.006516/0.7292, allocations: 2.494 MB / 0.8239 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.7294, allocations: 273.5 kB / 0.8242 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/0.7294, allocations: 12 kB / 0.8242 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003148/0.7326, allocations: 0.7123 MB / 0.8249 GB, free: 14.04 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.7341, allocations: 357.5 kB / 0.8252 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005955/0.74, allocations: 5.68 MB / 0.8308 GB, free: 7.633 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.7412, allocations: 202.6 kB / 0.831 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.7414, allocations: 79.97 kB / 0.8311 GB, free: 7.355 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.751e-06/0.7414, allocations: 4 kB / 0.8311 GB, free: 7.352 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006308/0.7477, allocations: 2.312 MB / 0.8333 GB, free: 5.078 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.7478, allocations: 12 kB / 0.8333 GB, free: 5.066 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003069/0.7508, allocations: 0.7059 MB / 0.834 GB, free: 4.348 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.7522, allocations: 353.6 kB / 0.8344 GB, free: 4.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005721/0.758, allocations: 5.668 MB / 0.8399 GB, free: 13.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.7591, allocations: 186.8 kB / 0.8401 GB, free: 13.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.7593, allocations: 87.97 kB / 0.8402 GB, free: 13.68 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,PID.I.local_reset,thermalConvectionPipe.turb_flag) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (3,1,88.9%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0006768/0.76, allocations: 403.4 kB / 0.8405 GB, free: 13.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/0.7602, allocations: 150.1 kB / 0.8407 GB, free: 13.15 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007275/0.7675, allocations: 2.641 MB / 0.8433 GB, free: 10.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.7676, allocations: 14.5 kB / 0.8433 GB, free: 10.49 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.7676, allocations: 4.062 kB / 0.8433 GB, free: 10.49 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005559/0.7681, allocations: 374.6 kB / 0.8436 GB, free: 10.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.7683, allocations: 32 kB / 0.8437 GB, free: 10.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000959/0.7693, allocations: 135.7 kB / 0.8438 GB, free: 9.938 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/0.7695, allocations: 125.1 kB / 0.8439 GB, free: 9.816 MB / 0.573 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005182/0.7747, allocations: 2.051 MB / 0.8459 GB, free: 7.777 MB / 0.573 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004817/0.7796, allocations: 2.558 MB / 0.8484 GB, free: 5.211 MB / 0.573 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001339/0.7809, allocations: 0.6959 MB / 0.8491 GB, free: 4.516 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0008305/0.7817, allocations: 0.6918 MB / 0.8498 GB, free: 3.82 MB / 0.573 GB Notification: Performance of Backend: time 5.01e-07/0.7818, allocations: 0 / 0.8498 GB, free: 3.82 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008887/0.7907, allocations: 4.564 MB / 0.8542 GB, free: 15.48 MB / 0.5886 GB Notification: Performance of SimCode: time 0.00569/0.7964, allocations: 4.916 MB / 0.859 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of Templates: time 0.05957/0.8559, allocations: 43.07 MB / 0.9011 GB, free: 15.66 MB / 0.6355 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleCoolingCycle.pipe 2>&1)