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.001656/0.001656, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001436/0.001436, allocations: 196.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0492/0.0492, allocations: 8.801 MB / 348.5 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 76.75 kB / 411.2 MB, free: 41.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.103, allocations: 51.57 MB / 462.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003716/0.1068, allocations: 2.414 MB / 465.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.1078, allocations: 0.5843 MB / 465.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.108, allocations: 4 kB / 465.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1081, allocations: 35.66 kB / 465.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.1083, allocations: 67.39 kB / 465.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.1085, allocations: 51.88 kB / 465.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000236/0.1087, allocations: 246.8 kB / 466.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.1089, allocations: 80.55 kB / 466.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.034e-05/0.109, allocations: 91.64 kB / 466.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.1092, allocations: 95.56 kB / 466.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.1092, allocations: 20 kB / 466.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.524e-05/0.1093, allocations: 19.94 kB / 466.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.821e-05/0.1093, allocations: 47.83 kB / 466.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1094, allocations: 107.5 kB / 466.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.1097, allocations: 231.1 kB / 466.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1097, allocations: 0 / 466.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1097, allocations: 0 / 466.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1097, allocations: 0 / 466.8 MB, free: 10.15 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.0007361/0.1104, allocations: 0.4964 MB / 467.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1105, allocations: 12.03 kB / 467.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.781e-05/0.1106, allocations: 50.73 kB / 467.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.1106, allocations: 28.66 kB / 467.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.1109, allocations: 237.4 kB / 467.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1109, allocations: 20.33 kB / 467.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/0.1109, allocations: 16.38 kB / 467.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.1112, allocations: 191.4 kB / 467.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1113, allocations: 0 / 467.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.1113, allocations: 8 kB / 467.9 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.1113, allocations: 4 kB / 467.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.1115, allocations: 119.8 kB / 468 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.1126, allocations: 0.7518 MB / 468.7 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.1129, allocations: 126.8 kB / 468.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.897e-05/0.113, allocations: 56.83 kB / 468.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.113, allocations: 4 kB / 468.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.1133, allocations: 97.98 kB / 469 MB, free: 7.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.1133, allocations: 0 / 469 MB, free: 7.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006432/0.1139, allocations: 291.2 kB / 469.3 MB, free: 7.449 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.114, allocations: 55.41 kB / 469.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.1142, allocations: 191 kB / 469.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.1142, allocations: 33.69 kB / 469.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.968e-05/0.1143, allocations: 128.3 kB / 469.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.1143, allocations: 51.27 kB / 469.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.1144, allocations: 37.7 kB / 469.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1145, allocations: 326.8 kB / 470.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.349e-05/0.1146, allocations: 47.88 kB / 470.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.1147, allocations: 68.27 kB / 470.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.1149, allocations: 114.2 kB / 470.3 MB, free: 6.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1149, allocations: 3.984 kB / 470.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003081/0.1152, allocations: 178.1 kB / 470.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1152, allocations: 8 kB / 470.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1152, allocations: 0 / 470.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001763/0.1154, allocations: 40.78 kB / 470.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.1155, allocations: 28.11 kB / 470.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.1167, allocations: 1.473 MB / 472.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.1168, allocations: 11.84 kB / 472.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.1168, allocations: 12 kB / 472.1 MB, free: 4.438 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.0001188/0.117, allocations: 141.6 kB / 472.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.117, allocations: 19.75 kB / 472.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.1171, allocations: 21.67 kB / 472.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-06/0.1171, allocations: 8.047 kB / 472.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1171, allocations: 0 / 472.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1171, allocations: 7.984 kB / 472.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.1173, allocations: 249.5 kB / 472.5 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1173, allocations: 0 / 472.5 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.1174, allocations: 23.92 kB / 472.5 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001111/0.1176, allocations: 32.84 kB / 472.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.1176, allocations: 3.984 kB / 472.6 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.1187, allocations: 1.461 MB / 474 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1187, allocations: 0 / 474 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.1191, allocations: 232.5 kB / 474.3 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.553e-05/0.1192, allocations: 108.9 kB / 474.4 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.1192, allocations: 7.938 kB / 474.4 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.1193, allocations: 8 kB / 474.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.1194, allocations: 20.09 kB / 474.4 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.1194, allocations: 8 kB / 474.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.1195, allocations: 133.2 kB / 474.5 MB, free: 1.738 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1195, allocations: 0 / 474.5 MB, free: 1.738 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002803/0.1198, allocations: 51.94 kB / 474.6 MB, free: 1.688 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.0006991/0.1205, allocations: 0.7815 MB / 475.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000428/0.121, allocations: 232.7 kB / 475.6 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.121, allocations: 0 / 475.6 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001939/0.1212, allocations: 170.6 kB / 475.8 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.1215, allocations: 40.41 kB / 475.8 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.1239, allocations: 2.07 MB / 477.9 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.1242, allocations: 0.7359 MB / 478.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.527e-05/0.1242, allocations: 17.53 kB / 478.6 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.1243, allocations: 55.42 kB / 478.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1243, allocations: 0 / 478.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.149, allocations: 4.133 MB / 482.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.23/9.379, allocations: 5.484 kB / 482.8 MB, free: 9.34 MB / 318.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)