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.001685/0.001685, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.361/2.361, allocations: 222.9 MB / 239.5 MB, free: 4.77 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.002138/0.002138, allocations: 184.5 kB / 289.8 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05551/0.05551, allocations: 8.809 MB / 348.8 MB, free: 4.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002861/0.002861, allocations: 82.22 kB / 411.1 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1317, allocations: 51.56 MB / 462.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.006395/0.1382, allocations: 2.471 MB / 465.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.14, allocations: 0.5728 MB / 465.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003395/0.1404, allocations: 7.938 kB / 465.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002584/0.1407, allocations: 19.83 kB / 465.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003511/0.1411, allocations: 67.47 kB / 465.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.1415, allocations: 39.97 kB / 465.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004649/0.142, allocations: 242.7 kB / 466 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.1422, allocations: 64.69 kB / 466.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.1424, allocations: 87.66 kB / 466.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.1427, allocations: 99.55 kB / 466.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.754e-05/0.1428, allocations: 12 kB / 466.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.151e-05/0.1429, allocations: 12 kB / 466.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.026e-05/0.1429, allocations: 47.77 kB / 466.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.1431, allocations: 95.55 kB / 466.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.1434, allocations: 171.8 kB / 466.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.1434, allocations: 0 / 466.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1434, allocations: 0 / 466.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1435, allocations: 0 / 466.6 MB, free: 10.93 MB / 302.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.001216/0.1447, allocations: 0.4987 MB / 467.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.1448, allocations: 8.031 kB / 467.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1449, allocations: 24.66 kB / 467.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.1453, allocations: 237.4 kB / 467.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.1454, allocations: 12.33 kB / 467.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.1455, allocations: 20.38 kB / 467.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.146, allocations: 199.5 kB / 467.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.146, allocations: 0 / 467.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.1461, allocations: 12 kB / 467.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1461, allocations: 4 kB / 467.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003635/0.1464, allocations: 111.9 kB / 467.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1482, allocations: 0.7479 MB / 468.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.1486, allocations: 130.7 kB / 468.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.1488, allocations: 60.83 kB / 468.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.1488, allocations: 0 / 468.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003667/0.1492, allocations: 99.31 kB / 468.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.575e-06/0.1492, allocations: 0 / 468.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009953/0.1502, allocations: 289.2 kB / 469 MB, free: 8.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.1503, allocations: 59.34 kB / 469.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.1506, allocations: 187.1 kB / 469.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.1506, allocations: 25.7 kB / 469.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.1508, allocations: 144.2 kB / 469.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.1509, allocations: 51.27 kB / 469.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.256e-05/0.151, allocations: 33.7 kB / 469.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1511, allocations: 326.8 kB / 469.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1513, allocations: 39.94 kB / 469.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.1514, allocations: 78.67 kB / 470 MB, free: 7.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.1517, allocations: 110.3 kB / 470.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1517, allocations: 0 / 470.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005744/0.1523, allocations: 186.1 kB / 470.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.1523, allocations: 12.12 kB / 470.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1523, allocations: 3.938 kB / 470.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.1526, allocations: 28.84 kB / 470.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.1528, allocations: 31.92 kB / 470.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.1546, allocations: 1.363 MB / 471.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.1548, allocations: 19.83 kB / 471.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1548, allocations: 8 kB / 471.7 MB, free: 5.387 MB / 302.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.0001993/0.155, allocations: 129.7 kB / 471.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.1551, allocations: 15.81 kB / 471.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.831e-05/0.1552, allocations: 29.58 kB / 471.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1552, allocations: 11.88 kB / 471.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1552, allocations: 0 / 471.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1552, allocations: 0 / 471.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003971/0.1556, allocations: 261.5 kB / 472.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1557, allocations: 0 / 472.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.1558, allocations: 19.98 kB / 472.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.156, allocations: 28.84 kB / 472.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.1561, allocations: 0 / 472.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.1575, allocations: 1.37 MB / 473.6 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1575, allocations: 4.031 kB / 473.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005937/0.1581, allocations: 236.5 kB / 473.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.1583, allocations: 100.9 kB / 473.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.727e-05/0.1584, allocations: 4 kB / 473.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.1585, allocations: 11.98 kB / 473.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.647e-05/0.1586, allocations: 11.98 kB / 473.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.1587, allocations: 8 kB / 473.9 MB, free: 2.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001692/0.1588, allocations: 141.2 kB / 474.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1588, allocations: 0 / 474.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004477/0.1593, allocations: 55.84 kB / 474.1 MB, free: 2.742 MB / 302.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.0001454/0.1595, allocations: 108.1 kB / 474.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005351/0.16, allocations: 222.4 kB / 474.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.16, allocations: 3.938 kB / 474.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.1603, allocations: 170.9 kB / 474.6 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.1608, allocations: 35.23 kB / 474.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.1622, allocations: 0.5291 MB / 475.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.1626, allocations: 0.7359 MB / 475.9 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.711e-05/0.1626, allocations: 15.44 kB / 475.9 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1627, allocations: 0 / 475.9 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of Templates: time 0.007614/0.1703, allocations: 2.994 MB / 478.9 MB, free: 13.86 MB / 318.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)