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.008319/0.008319, allocations: 97.23 kB / 15.73 MB, free: 6.488 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.366/1.366, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001504/0.001504, allocations: 191.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03556/0.03556, allocations: 8.809 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 75.88 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.004939/0.1065, allocations: 2.416 MB / 0.5053 GB, free: 7.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.108, allocations: 0.5843 MB / 0.5058 GB, free: 7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.1084, allocations: 4 kB / 0.5058 GB, free: 6.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003137/0.1088, allocations: 35.64 kB / 0.5059 GB, free: 6.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003957/0.1092, allocations: 63.42 kB / 0.5059 GB, free: 6.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000423/0.1096, allocations: 55.86 kB / 0.506 GB, free: 6.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005621/0.1102, allocations: 250.8 kB / 0.5062 GB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1104, allocations: 80.25 kB / 0.5063 GB, free: 6.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.1106, allocations: 87.66 kB / 0.5064 GB, free: 6.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.1108, allocations: 107.5 kB / 0.5065 GB, free: 6.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.1109, allocations: 16 kB / 0.5065 GB, free: 6.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.574e-05/0.1109, allocations: 20 kB / 0.5065 GB, free: 6.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.643e-05/0.111, allocations: 39.84 kB / 0.5066 GB, free: 6.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.1111, allocations: 111.5 kB / 0.5067 GB, free: 6.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.1115, allocations: 231 kB / 0.5069 GB, free: 5.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1115, allocations: 4 kB / 0.5069 GB, free: 5.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1115, allocations: 0 / 0.5069 GB, free: 5.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.1115, allocations: 0 / 0.5069 GB, free: 5.914 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.0008636/0.1124, allocations: 0.4984 MB / 0.5074 GB, free: 5.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.1124, allocations: 12.03 kB / 0.5074 GB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.962e-05/0.1125, allocations: 58.66 kB / 0.5074 GB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.669e-05/0.1126, allocations: 28.8 kB / 0.5075 GB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004248/0.113, allocations: 236 kB / 0.5077 GB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.1131, allocations: 12.38 kB / 0.5077 GB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.1131, allocations: 16.38 kB / 0.5077 GB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.1135, allocations: 191.4 kB / 0.5079 GB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.1135, allocations: 4 kB / 0.5079 GB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.1136, allocations: 4 kB / 0.5079 GB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.1136, allocations: 7.938 kB / 0.5079 GB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/0.1138, allocations: 123.8 kB / 0.508 GB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.1151, allocations: 0.7442 MB / 0.5088 GB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.1154, allocations: 138.7 kB / 0.5089 GB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.1155, allocations: 56.83 kB / 0.509 GB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.1156, allocations: 0 / 0.509 GB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.1157, allocations: 97.42 kB / 0.509 GB, free: 3.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.1158, allocations: 0 / 0.509 GB, free: 3.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000644/0.1164, allocations: 295.4 kB / 0.5093 GB, free: 3.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.1165, allocations: 59.41 kB / 0.5094 GB, free: 3.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.1166, allocations: 183.1 kB / 0.5096 GB, free: 2.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.1167, allocations: 33.64 kB / 0.5096 GB, free: 2.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1168, allocations: 140.4 kB / 0.5097 GB, free: 2.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.239e-05/0.1168, allocations: 55.53 kB / 0.5098 GB, free: 2.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.893e-05/0.1169, allocations: 37.7 kB / 0.5098 GB, free: 2.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.117, allocations: 326.8 kB / 0.5101 GB, free: 2.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.021e-05/0.1171, allocations: 31.98 kB / 0.5102 GB, free: 2.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.976e-05/0.1172, allocations: 72.22 kB / 0.5102 GB, free: 2.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.1174, allocations: 122 kB / 0.5103 GB, free: 2.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1174, allocations: 0 / 0.5103 GB, free: 2.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003193/0.1177, allocations: 182.2 kB / 0.5105 GB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.1178, allocations: 13.69 kB / 0.5105 GB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1178, allocations: 0 / 0.5105 GB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.118, allocations: 36.83 kB / 0.5106 GB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1181, allocations: 23.98 kB / 0.5106 GB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.1193, allocations: 1.469 MB / 0.512 GB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.1195, allocations: 11.89 kB / 0.512 GB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.1195, allocations: 8 kB / 0.512 GB, free: 180 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.0001249/0.1196, allocations: 133.9 kB / 0.5122 GB, free: 36 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.27e-05/0.1197, allocations: 31.89 kB / 0.5122 GB, free: 4 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.142e-05/0.1197, allocations: 21.52 kB / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1197, allocations: 0 / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.1197, allocations: 0 / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1197, allocations: 0 / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.12, allocations: 261.5 kB / 0.5125 GB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.12, allocations: 0 / 0.5125 GB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.1201, allocations: 23.92 kB / 0.5125 GB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001141/0.1203, allocations: 32.78 kB / 0.5125 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1203, allocations: 8 kB / 0.5125 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001127/0.1214, allocations: 1.461 MB / 0.514 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1214, allocations: 0 / 0.514 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003748/0.1218, allocations: 235.5 kB / 0.5142 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.35e-05/0.1219, allocations: 108.9 kB / 0.5143 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.1219, allocations: 7.938 kB / 0.5143 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.1221, allocations: 7.984 kB / 0.5143 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.1222, allocations: 24.05 kB / 0.5143 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.1222, allocations: 7.938 kB / 0.5143 GB, free: 13.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.1223, allocations: 137.2 kB / 0.5145 GB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 0.5145 GB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002716/0.1226, allocations: 51.95 kB / 0.5145 GB, free: 13.4 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.0006469/0.1232, allocations: 0.7751 MB / 0.5153 GB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.1237, allocations: 218.5 kB / 0.5155 GB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1237, allocations: 0 / 0.5155 GB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.1239, allocations: 172.4 kB / 0.5156 GB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.1242, allocations: 32.3 kB / 0.5157 GB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.1269, allocations: 2.086 MB / 0.5177 GB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.1273, allocations: 0.732 MB / 0.5184 GB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.832e-05/0.1273, allocations: 21.53 kB / 0.5184 GB, free: 9.184 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.987e-05/0.1274, allocations: 55.42 kB / 0.5185 GB, free: 9.129 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1274, allocations: 3.938 kB / 0.5185 GB, free: 9.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02668/0.1541, allocations: 4.206 MB / 0.5226 GB, free: 5.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.467/9.621, allocations: 0 / 0.5226 GB, free: 5.023 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Thermal.Coupling_res.csv --start-time 0 --stop-time 400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_Thermal_Coupling.fmu > HanserModelica_HanserModelica.Thermal.Coupling.pipe 2>&1)