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.005752/0.005752, allocations: 100.4 kB / 15.73 MB, free: 5.98 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.349/1.349, 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.001602/0.001602, allocations: 192.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03449/0.03449, allocations: 8.805 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 83.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1047, allocations: 51.55 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.004349/0.1091, allocations: 2.427 MB / 0.5053 GB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1105, allocations: 0.5688 MB / 0.5058 GB, free: 6.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000212/0.1108, allocations: 0 / 0.5058 GB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.111, allocations: 39.64 kB / 0.5059 GB, free: 6.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000257/0.1112, allocations: 67.34 kB / 0.5059 GB, free: 6.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.1115, allocations: 55.88 kB / 0.506 GB, free: 6.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.1119, allocations: 250.8 kB / 0.5062 GB, free: 6.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.1122, allocations: 76.53 kB / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.1124, allocations: 87.66 kB / 0.5064 GB, free: 6.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.1126, allocations: 99.55 kB / 0.5065 GB, free: 6.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.676e-05/0.1127, allocations: 27.98 kB / 0.5065 GB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.144e-05/0.1127, allocations: 20 kB / 0.5065 GB, free: 6.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.1128, allocations: 39.84 kB / 0.5065 GB, free: 6.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.113, allocations: 115.4 kB / 0.5067 GB, free: 6.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.1133, allocations: 227.1 kB / 0.5069 GB, free: 5.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1133, allocations: 4 kB / 0.5069 GB, free: 5.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1133, allocations: 0 / 0.5069 GB, free: 5.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1133, allocations: 0 / 0.5069 GB, free: 5.902 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.0008752/0.1142, allocations: 0.4948 MB / 0.5074 GB, free: 5.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1142, allocations: 8.031 kB / 0.5074 GB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.754e-05/0.1143, allocations: 62.72 kB / 0.5074 GB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.1144, allocations: 24.66 kB / 0.5075 GB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.1149, allocations: 235.8 kB / 0.5077 GB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1149, allocations: 16.38 kB / 0.5077 GB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.811e-05/0.1149, allocations: 16.38 kB / 0.5077 GB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.1153, allocations: 199.3 kB / 0.5079 GB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1153, allocations: 0 / 0.5079 GB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.1153, allocations: 8 kB / 0.5079 GB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.1153, allocations: 4 kB / 0.5079 GB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.1156, allocations: 115.9 kB / 0.508 GB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.1169, allocations: 0.7479 MB / 0.5088 GB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.1172, allocations: 126.7 kB / 0.5089 GB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.1173, allocations: 52.84 kB / 0.5089 GB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.1173, allocations: 0 / 0.5089 GB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.1175, allocations: 97.48 kB / 0.509 GB, free: 3.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.1176, allocations: 0 / 0.509 GB, free: 3.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007144/0.1183, allocations: 295.2 kB / 0.5093 GB, free: 3.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.1183, allocations: 59.41 kB / 0.5094 GB, free: 3.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002048/0.1186, allocations: 187.1 kB / 0.5095 GB, free: 2.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.1186, allocations: 33.64 kB / 0.5096 GB, free: 2.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.563e-05/0.1187, allocations: 140.2 kB / 0.5097 GB, free: 2.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.155e-05/0.1187, allocations: 47.34 kB / 0.5097 GB, free: 2.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.16e-05/0.1188, allocations: 45.55 kB / 0.5098 GB, free: 2.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.119, allocations: 326.8 kB / 0.5101 GB, free: 2.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.843e-05/0.119, allocations: 35.98 kB / 0.5101 GB, free: 2.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.215e-05/0.1191, allocations: 74.81 kB / 0.5102 GB, free: 2.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.1193, allocations: 114 kB / 0.5103 GB, free: 2.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1193, allocations: 0 / 0.5103 GB, free: 2.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000346/0.1197, allocations: 186.1 kB / 0.5105 GB, free: 1.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1197, allocations: 4 kB / 0.5105 GB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1197, allocations: 0 / 0.5105 GB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000211/0.1199, allocations: 36.83 kB / 0.5105 GB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.1201, allocations: 31.92 kB / 0.5106 GB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.1214, allocations: 1.465 MB / 0.512 GB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.1215, allocations: 19.92 kB / 0.512 GB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1215, allocations: 12.06 kB / 0.512 GB, free: 176 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.0001342/0.1216, allocations: 129.7 kB / 0.5121 GB, free: 36 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.1217, allocations: 19.75 kB / 0.5122 GB, free: 16 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.174e-05/0.1218, allocations: 25.52 kB / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1218, allocations: 4 kB / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1218, allocations: 0 / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.1218, allocations: 0 / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.1221, allocations: 257.5 kB / 0.5124 GB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1221, allocations: 4 kB / 0.5124 GB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.1222, allocations: 27.86 kB / 0.5125 GB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.1223, allocations: 28.84 kB / 0.5125 GB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.1223, allocations: 0 / 0.5125 GB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.1235, allocations: 1.469 MB / 0.5139 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1236, allocations: 0 / 0.5139 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004015/0.124, allocations: 235.5 kB / 0.5142 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.785e-05/0.1241, allocations: 101.1 kB / 0.5143 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.1241, allocations: 11.94 kB / 0.5143 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.1242, allocations: 7.984 kB / 0.5143 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.1243, allocations: 19.92 kB / 0.5143 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1243, allocations: 0 / 0.5143 GB, free: 13.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.1244, allocations: 137.2 kB / 0.5144 GB, free: 13.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1244, allocations: 0 / 0.5144 GB, free: 13.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002825/0.1247, allocations: 59.84 kB / 0.5145 GB, free: 13.41 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.0007422/0.1255, allocations: 0.7716 MB / 0.5152 GB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004963/0.126, allocations: 226.5 kB / 0.5154 GB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.126, allocations: 4.312 kB / 0.5154 GB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.1263, allocations: 174.6 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.000368/0.1266, allocations: 35.97 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.00321/0.1299, allocations: 2.076 MB / 0.5177 GB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.1304, allocations: 0.7359 MB / 0.5184 GB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.1305, allocations: 13.55 kB / 0.5184 GB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.1306, allocations: 59.42 kB / 0.5185 GB, free: 9.137 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1306, allocations: 4 kB / 0.5185 GB, free: 9.133 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.1566, allocations: 4.154 MB / 0.5225 GB, free: 5.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.62/9.777, allocations: 10.38 kB / 0.5225 GB, free: 5.078 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)