Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.Coupling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.Thermal.Coupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Thermal.Coupling") translateModel(HanserModelica.Thermal.Coupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Thermal.Coupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004917/0.004917, allocations: 99.16 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 222.9 MB / 239.4 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 195.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03304/0.03304, allocations: 8.793 MB / 348.6 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 75.88 kB / 463.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08177/0.08313, allocations: 51.57 MB / 0.5034 GB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003519/0.08668, allocations: 2.423 MB / 0.5057 GB, free: 7.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.08777, allocations: 0.5843 MB / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.08797, allocations: 0 / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.08816, allocations: 35.64 kB / 0.5063 GB, free: 6.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.08835, allocations: 67.34 kB / 0.5064 GB, free: 6.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.08862, allocations: 55.88 kB / 0.5065 GB, free: 6.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.08896, allocations: 246.8 kB / 0.5067 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.08914, allocations: 80.25 kB / 0.5068 GB, free: 6.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.08928, allocations: 87.66 kB / 0.5069 GB, free: 5.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.08943, allocations: 103.5 kB / 0.507 GB, free: 5.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.08948, allocations: 16 kB / 0.507 GB, free: 5.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.711e-05/0.08953, allocations: 20 kB / 0.507 GB, free: 5.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.227e-05/0.08957, allocations: 47.83 kB / 0.507 GB, free: 5.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.0897, allocations: 115.4 kB / 0.5071 GB, free: 5.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.08997, allocations: 227 kB / 0.5074 GB, free: 5.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.08998, allocations: 0 / 0.5074 GB, free: 5.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08999, allocations: 0 / 0.5074 GB, free: 5.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.09, allocations: 0 / 0.5074 GB, free: 5.43 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007198/0.09073, allocations: 0.5023 MB / 0.5079 GB, free: 4.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.09078, allocations: 20.02 kB / 0.5079 GB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.917e-05/0.09084, allocations: 24.8 kB / 0.5079 GB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.09113, allocations: 232 kB / 0.5081 GB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.09116, allocations: 12.38 kB / 0.5081 GB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.619e-05/0.0912, allocations: 20.38 kB / 0.5081 GB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.09151, allocations: 187.5 kB / 0.5083 GB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.09153, allocations: 3.938 kB / 0.5083 GB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.09156, allocations: 8 kB / 0.5083 GB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.09157, allocations: 11.94 kB / 0.5083 GB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.09179, allocations: 119.9 kB / 0.5085 GB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.0928, allocations: 0.7481 MB / 0.5092 GB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002601/0.09307, allocations: 126.7 kB / 0.5093 GB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.825e-05/0.09317, allocations: 56.84 kB / 0.5094 GB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.09319, allocations: 0 / 0.5094 GB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.09335, allocations: 97.42 kB / 0.5095 GB, free: 3.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.09336, allocations: 4 kB / 0.5095 GB, free: 3.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005861/0.09395, allocations: 287.4 kB / 0.5097 GB, free: 2.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.094, allocations: 55.41 kB / 0.5098 GB, free: 2.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.09415, allocations: 183.1 kB / 0.51 GB, free: 2.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.09418, allocations: 25.7 kB / 0.51 GB, free: 2.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.63e-05/0.09426, allocations: 144.4 kB / 0.5101 GB, free: 2.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.0943, allocations: 59.47 kB / 0.5102 GB, free: 2.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.283e-05/0.09436, allocations: 37.7 kB / 0.5102 GB, free: 2.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.09446, allocations: 326.8 kB / 0.5105 GB, free: 1.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.2e-05/0.09454, allocations: 35.98 kB / 0.5106 GB, free: 1.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.228e-05/0.09462, allocations: 76.17 kB / 0.5106 GB, free: 1.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.09478, allocations: 118.2 kB / 0.5108 GB, free: 1.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.09479, allocations: 0 / 0.5108 GB, free: 1.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002981/0.09509, allocations: 186.3 kB / 0.5109 GB, free: 1.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.09512, allocations: 9.562 kB / 0.5109 GB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.09513, allocations: 0 / 0.5109 GB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.09531, allocations: 36.81 kB / 0.511 GB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.09542, allocations: 31.92 kB / 0.511 GB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.0965, allocations: 1.465 MB / 0.5124 GB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.09661, allocations: 19.88 kB / 0.5125 GB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.09663, allocations: 12 kB / 0.5125 GB, free: 15.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.09674, allocations: 137.8 kB / 0.5126 GB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.09677, allocations: 19.84 kB / 0.5126 GB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.09682, allocations: 21.52 kB / 0.5126 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.09683, allocations: 0 / 0.5126 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.09684, allocations: 4 kB / 0.5126 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.09684, allocations: 0 / 0.5126 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.09707, allocations: 253.5 kB / 0.5129 GB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.09708, allocations: 0 / 0.5129 GB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.786e-05/0.09718, allocations: 23.92 kB / 0.5129 GB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.0973, allocations: 40.78 kB / 0.5129 GB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.09733, allocations: 4 kB / 0.5129 GB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009781/0.09831, allocations: 1.465 MB / 0.5144 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.09833, allocations: 0 / 0.5144 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.09868, allocations: 235.4 kB / 0.5146 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.046e-05/0.09876, allocations: 108.9 kB / 0.5147 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.09879, allocations: 3.938 kB / 0.5147 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.0989, allocations: 20.11 kB / 0.5147 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.09895, allocations: 7.984 kB / 0.5147 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.09897, allocations: 8 kB / 0.5147 GB, free: 13.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.659e-05/0.09908, allocations: 137.2 kB / 0.5149 GB, free: 13.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09908, allocations: 3.938 kB / 0.5149 GB, free: 13.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.09934, allocations: 51.95 kB / 0.5149 GB, free: 12.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 3 ($whenCondition1,switch.control,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.769e-05/0.09943, allocations: 95.25 kB / 0.515 GB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003485/0.09979, allocations: 228.6 kB / 0.5152 GB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.0998, allocations: 0 / 0.5152 GB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.09998, allocations: 170.6 kB / 0.5154 GB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.1002, allocations: 36.23 kB / 0.5154 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006932/0.101, allocations: 453.4 kB / 0.5159 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.1012, allocations: 0.732 MB / 0.5166 GB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.543e-05/0.1013, allocations: 17.55 kB / 0.5166 GB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.359e-05/0.1013, allocations: 15.44 kB / 0.5166 GB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1014, allocations: 0 / 0.5166 GB, free: 11.16 MB / 366.1 MB Notification: Performance of Templates: time 0.004982/0.1063, allocations: 2.24 MB / 0.5188 GB, free: 8.949 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Thermal.Coupling.makefile (rm -f HanserModelica_HanserModelica.Thermal.Coupling.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.Coupling.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.Coupling.pipe >> ../files/HanserModelica_HanserModelica.Thermal.Coupling.sim & ./HanserModelica_HanserModelica.Thermal.Coupling -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Thermal.Coupling.pipe 2>&1)