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: "" <> buildModelFMU(HanserModelica.Thermal.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Coupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Coupling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00543/0.005435, allocations: 100.2 kB / 15.73 MB, free: 6.473 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.465/1.465, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001344/0.001344, allocations: 196.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03584/0.03584, allocations: 8.798 MB / 348.7 MB, free: 4.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 83.84 kB / 463.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1154, allocations: 51.56 MB / 0.5029 GB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.004796/0.1202, allocations: 2.412 MB / 0.5053 GB, free: 7.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.1217, allocations: 0.5804 MB / 0.5058 GB, free: 7.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.1219, allocations: 8 kB / 0.5058 GB, free: 7.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1221, allocations: 31.64 kB / 0.5059 GB, free: 7.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.1224, allocations: 71.33 kB / 0.5059 GB, free: 6.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.1227, allocations: 51.94 kB / 0.506 GB, free: 6.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003697/0.1231, allocations: 246.8 kB / 0.5062 GB, free: 6.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.1233, allocations: 80.53 kB / 0.5063 GB, free: 6.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.1235, allocations: 87.66 kB / 0.5064 GB, free: 6.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.1237, allocations: 107.5 kB / 0.5065 GB, free: 6.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.1237, allocations: 16 kB / 0.5065 GB, free: 6.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.1238, allocations: 20 kB / 0.5065 GB, free: 6.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.336e-05/0.1238, allocations: 43.83 kB / 0.5065 GB, free: 6.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.124, allocations: 111.5 kB / 0.5067 GB, free: 6.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.1243, allocations: 235.1 kB / 0.5069 GB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1244, allocations: 0 / 0.5069 GB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1244, allocations: 0 / 0.5069 GB, free: 5.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1244, allocations: 0 / 0.5069 GB, free: 5.961 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.0009382/0.1253, allocations: 0.5025 MB / 0.5074 GB, free: 5.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.1254, allocations: 12.03 kB / 0.5074 GB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.116e-05/0.1254, allocations: 46.73 kB / 0.5074 GB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.449e-05/0.1255, allocations: 28.66 kB / 0.5075 GB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.1259, allocations: 235.8 kB / 0.5077 GB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1259, allocations: 12.38 kB / 0.5077 GB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.126, allocations: 16.38 kB / 0.5077 GB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003516/0.1264, allocations: 195.3 kB / 0.5079 GB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1264, allocations: 3.938 kB / 0.5079 GB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.1264, allocations: 8 kB / 0.5079 GB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1264, allocations: 4 kB / 0.5079 GB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.1266, allocations: 119.9 kB / 0.508 GB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.1278, allocations: 0.7401 MB / 0.5087 GB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.1281, allocations: 146.6 kB / 0.5089 GB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.893e-05/0.1282, allocations: 52.83 kB / 0.5089 GB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.1283, allocations: 4 kB / 0.5089 GB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.1284, allocations: 91.38 kB / 0.509 GB, free: 3.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.1285, allocations: 0 / 0.509 GB, free: 3.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006497/0.1291, allocations: 293.2 kB / 0.5093 GB, free: 3.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.1292, allocations: 63.39 kB / 0.5094 GB, free: 3.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.1294, allocations: 183.1 kB / 0.5095 GB, free: 2.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.1294, allocations: 33.64 kB / 0.5096 GB, free: 2.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.1295, allocations: 140.2 kB / 0.5097 GB, free: 2.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1296, allocations: 51.34 kB / 0.5098 GB, free: 2.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.1296, allocations: 37.62 kB / 0.5098 GB, free: 2.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1298, allocations: 330.8 kB / 0.5101 GB, free: 2.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.811e-05/0.1299, allocations: 31.98 kB / 0.5101 GB, free: 2.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.652e-05/0.13, allocations: 76.17 kB / 0.5102 GB, free: 2.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.1302, allocations: 113.9 kB / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1302, allocations: 0 / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003115/0.1305, allocations: 182.1 kB / 0.5105 GB, free: 1.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1305, allocations: 8.125 kB / 0.5105 GB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1305, allocations: 4 kB / 0.5105 GB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.1307, allocations: 28.84 kB / 0.5105 GB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.1309, allocations: 31.92 kB / 0.5106 GB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.1322, allocations: 1.469 MB / 0.512 GB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.1323, allocations: 19.92 kB / 0.512 GB, free: 240 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.1323, allocations: 4 kB / 0.512 GB, free: 236 kB / 350.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.0001465/0.1325, allocations: 133.7 kB / 0.5121 GB, free: 92 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.1325, allocations: 27.81 kB / 0.5122 GB, free: 64 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.029e-05/0.1325, allocations: 13.53 kB / 0.5122 GB, free: 44 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1326, allocations: 4 kB / 0.5122 GB, free: 40 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1326, allocations: 0 / 0.5122 GB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1326, allocations: 3.984 kB / 0.5122 GB, free: 36 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.1328, allocations: 253.5 kB / 0.5124 GB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1329, allocations: 0 / 0.5124 GB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.133, allocations: 27.86 kB / 0.5125 GB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.1331, allocations: 36.83 kB / 0.5125 GB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1331, allocations: 8 kB / 0.5125 GB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.1342, allocations: 1.465 MB / 0.5139 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1342, allocations: 0 / 0.5139 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.1346, allocations: 235.5 kB / 0.5142 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.006e-05/0.1347, allocations: 100.9 kB / 0.5143 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.1347, allocations: 11.88 kB / 0.5143 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.1348, allocations: 7.984 kB / 0.5143 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.1349, allocations: 20.11 kB / 0.5143 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.1349, allocations: 7.938 kB / 0.5143 GB, free: 13.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001081/0.135, allocations: 133.2 kB / 0.5144 GB, free: 13.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.135, allocations: 4 kB / 0.5144 GB, free: 13.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.1353, allocations: 55.84 kB / 0.5145 GB, free: 13.46 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.0007124/0.1361, allocations: 0.7633 MB / 0.5152 GB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004031/0.1365, allocations: 226.5 kB / 0.5154 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1365, allocations: 4 kB / 0.5155 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.1367, allocations: 166.6 kB / 0.5156 GB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.137, allocations: 36.3 kB / 0.5156 GB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.1395, allocations: 2.078 MB / 0.5177 GB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.1398, allocations: 0.7359 MB / 0.5184 GB, free: 9.266 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.061e-05/0.1399, allocations: 13.55 kB / 0.5184 GB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.14, allocations: 55.42 kB / 0.5185 GB, free: 9.199 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.14, allocations: 0 / 0.5185 GB, free: 9.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.1687, allocations: 4.291 MB / 0.5226 GB, free: 5.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.634/9.802, allocations: 4.062 kB / 0.5227 GB, free: 5.012 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Thermal_Coupling_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Thermal_Coupling.fmu > HanserModelica_HanserModelica.Thermal.Coupling.pipe 2>&1)