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.007725/0.007725, allocations: 104.7 kB / 15.73 MB, free: 6.051 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.507/1.507, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.00149/0.00149, allocations: 184.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03526/0.03526, allocations: 8.79 MB / 348.6 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 75.88 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09864, allocations: 51.56 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003635/0.1023, allocations: 2.423 MB / 0.5057 GB, free: 7.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.1038, allocations: 0.5804 MB / 0.5063 GB, free: 6.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.1041, allocations: 4 kB / 0.5063 GB, free: 6.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.1044, allocations: 35.64 kB / 0.5063 GB, free: 6.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.1047, allocations: 67.34 kB / 0.5064 GB, free: 6.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.1051, allocations: 55.94 kB / 0.5065 GB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004649/0.1056, allocations: 242.8 kB / 0.5067 GB, free: 6.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.1058, allocations: 80.25 kB / 0.5068 GB, free: 5.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.1061, allocations: 91.66 kB / 0.5069 GB, free: 5.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002838/0.1064, allocations: 103.5 kB / 0.507 GB, free: 5.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.1064, allocations: 20 kB / 0.507 GB, free: 5.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.1065, allocations: 20 kB / 0.507 GB, free: 5.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.002e-05/0.1066, allocations: 39.84 kB / 0.507 GB, free: 5.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.1068, allocations: 115.5 kB / 0.5071 GB, free: 5.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.1071, allocations: 231.1 kB / 0.5074 GB, free: 5.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1072, allocations: 0 / 0.5074 GB, free: 5.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1072, allocations: 0 / 0.5074 GB, free: 5.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.1072, allocations: 0 / 0.5074 GB, free: 5.375 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.001015/0.1082, allocations: 0.4987 MB / 0.5079 GB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1083, allocations: 8.031 kB / 0.5079 GB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.647e-05/0.1084, allocations: 24.66 kB / 0.5079 GB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004117/0.1088, allocations: 239.8 kB / 0.5081 GB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1088, allocations: 12.38 kB / 0.5081 GB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.394e-05/0.1089, allocations: 20.38 kB / 0.5081 GB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.1092, allocations: 195.5 kB / 0.5083 GB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.1092, allocations: 0 / 0.5083 GB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.453e-05/0.1093, allocations: 8 kB / 0.5083 GB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1093, allocations: 4 kB / 0.5083 GB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.1095, allocations: 123.8 kB / 0.5085 GB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.1107, allocations: 0.7362 MB / 0.5092 GB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.1111, allocations: 134.7 kB / 0.5093 GB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.1112, allocations: 60.78 kB / 0.5094 GB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.1112, allocations: 0 / 0.5094 GB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.1114, allocations: 93.34 kB / 0.5095 GB, free: 3.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.182e-06/0.1114, allocations: 4 kB / 0.5095 GB, free: 3.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006486/0.112, allocations: 291.2 kB / 0.5097 GB, free: 2.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.1121, allocations: 59.41 kB / 0.5098 GB, free: 2.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1123, allocations: 183.1 kB / 0.51 GB, free: 2.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.1123, allocations: 29.7 kB / 0.51 GB, free: 2.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1124, allocations: 136.2 kB / 0.5101 GB, free: 2.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.501e-05/0.1125, allocations: 51.3 kB / 0.5102 GB, free: 2.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.72e-05/0.1125, allocations: 45.61 kB / 0.5102 GB, free: 2.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002593/0.1128, allocations: 322.8 kB / 0.5105 GB, free: 1.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.141e-05/0.1129, allocations: 31.98 kB / 0.5106 GB, free: 1.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.698e-05/0.113, allocations: 86.75 kB / 0.5106 GB, free: 1.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.1131, allocations: 108.2 kB / 0.5107 GB, free: 1.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1131, allocations: 4 kB / 0.5107 GB, free: 1.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002922/0.1134, allocations: 186.1 kB / 0.5109 GB, free: 1.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1135, allocations: 8 kB / 0.5109 GB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1135, allocations: 0 / 0.5109 GB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001959/0.1137, allocations: 36.81 kB / 0.511 GB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1138, allocations: 27.98 kB / 0.511 GB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.115, allocations: 1.461 MB / 0.5124 GB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.1151, allocations: 19.83 kB / 0.5124 GB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.1151, allocations: 12.06 kB / 0.5124 GB, free: 15.71 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.0002292/0.1154, allocations: 137.7 kB / 0.5126 GB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.736e-05/0.1154, allocations: 19.75 kB / 0.5126 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.1155, allocations: 25.52 kB / 0.5126 GB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1155, allocations: 0 / 0.5126 GB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1155, allocations: 0 / 0.5126 GB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1155, allocations: 0 / 0.5126 GB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.1158, allocations: 257.5 kB / 0.5129 GB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1158, allocations: 4 kB / 0.5129 GB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.1159, allocations: 20 kB / 0.5129 GB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/0.116, allocations: 40.7 kB / 0.5129 GB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.116, allocations: 4 kB / 0.5129 GB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.1172, allocations: 1.461 MB / 0.5144 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1172, allocations: 0 / 0.5144 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003716/0.1176, allocations: 225.7 kB / 0.5146 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.1177, allocations: 109 kB / 0.5147 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.1177, allocations: 3.938 kB / 0.5147 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1178, allocations: 15.98 kB / 0.5147 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.693e-05/0.1179, allocations: 15.92 kB / 0.5147 GB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.1179, allocations: 11.94 kB / 0.5147 GB, free: 13.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.1181, allocations: 137.2 kB / 0.5149 GB, free: 13 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1181, allocations: 3.938 kB / 0.5149 GB, free: 13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1184, allocations: 55.84 kB / 0.5149 GB, free: 12.95 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 0.0001163/0.1185, allocations: 99.25 kB / 0.515 GB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004306/0.1189, allocations: 229 kB / 0.5152 GB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.119, allocations: 0 / 0.5152 GB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.1192, allocations: 174.5 kB / 0.5154 GB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1195, allocations: 36.23 kB / 0.5154 GB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1205, allocations: 433.9 kB / 0.5158 GB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006649/0.1212, allocations: 0.7281 MB / 0.5166 GB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.1213, allocations: 17.55 kB / 0.5166 GB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.167e-05/0.1214, allocations: 15.44 kB / 0.5166 GB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1214, allocations: 4 kB / 0.5166 GB, free: 11.14 MB / 366.1 MB Notification: Performance of Templates: time 0.007312/0.1287, allocations: 2.24 MB / 0.5188 GB, free: 8.922 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)