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.004832/0.004832, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.359/1.359, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.00144/0.00144, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03544/0.03544, allocations: 8.805 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 83.86 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1042, allocations: 51.57 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003632/0.1079, allocations: 2.424 MB / 0.5053 GB, free: 7.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009513/0.1089, allocations: 0.5766 MB / 0.5058 GB, free: 6.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.109, allocations: 7.938 kB / 0.5058 GB, free: 6.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.1091, allocations: 27.7 kB / 0.5059 GB, free: 6.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1093, allocations: 67.34 kB / 0.5059 GB, free: 6.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.1095, allocations: 55.88 kB / 0.506 GB, free: 6.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000305/0.1098, allocations: 254.8 kB / 0.5062 GB, free: 6.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.11, allocations: 72.27 kB / 0.5063 GB, free: 6.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.1101, allocations: 91.64 kB / 0.5064 GB, free: 6.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1103, allocations: 103.5 kB / 0.5065 GB, free: 6.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.1103, allocations: 20 kB / 0.5065 GB, free: 6.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.217e-05/0.1104, allocations: 20 kB / 0.5065 GB, free: 6.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.978e-05/0.1104, allocations: 39.84 kB / 0.5066 GB, free: 6.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1106, allocations: 115.4 kB / 0.5067 GB, free: 6.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.1108, allocations: 231 kB / 0.5069 GB, free: 5.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1109, allocations: 0 / 0.5069 GB, free: 5.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1109, allocations: 0 / 0.5069 GB, free: 5.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.1109, allocations: 0 / 0.5069 GB, free: 5.891 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.0008116/0.1117, allocations: 0.5101 MB / 0.5074 GB, free: 5.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1117, allocations: 15.97 kB / 0.5074 GB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.398e-05/0.1118, allocations: 46.73 kB / 0.5074 GB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.1118, allocations: 24.8 kB / 0.5075 GB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.1122, allocations: 232 kB / 0.5077 GB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1122, allocations: 12.38 kB / 0.5077 GB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.1122, allocations: 20.36 kB / 0.5077 GB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/0.1126, allocations: 199.3 kB / 0.5079 GB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1126, allocations: 0 / 0.5079 GB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.1126, allocations: 8 kB / 0.5079 GB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.1127, allocations: 4 kB / 0.5079 GB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.1129, allocations: 119.9 kB / 0.508 GB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.1142, allocations: 0.7481 MB / 0.5088 GB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.1145, allocations: 134.7 kB / 0.5089 GB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.461e-05/0.1146, allocations: 48.84 kB / 0.5089 GB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.1146, allocations: 4 kB / 0.5089 GB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.1148, allocations: 99.31 kB / 0.509 GB, free: 3.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.1148, allocations: 0 / 0.509 GB, free: 3.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006859/0.1155, allocations: 289.3 kB / 0.5093 GB, free: 3.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.1156, allocations: 59.41 kB / 0.5094 GB, free: 3.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.1158, allocations: 191.1 kB / 0.5096 GB, free: 2.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1158, allocations: 29.7 kB / 0.5096 GB, free: 2.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.412e-05/0.1159, allocations: 144.3 kB / 0.5097 GB, free: 2.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.746e-05/0.116, allocations: 55.52 kB / 0.5098 GB, free: 2.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/0.116, allocations: 37.7 kB / 0.5098 GB, free: 2.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1162, allocations: 326.8 kB / 0.5101 GB, free: 2.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-05/0.1163, allocations: 31.98 kB / 0.5102 GB, free: 2.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.1164, allocations: 80.22 kB / 0.5102 GB, free: 2.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.1165, allocations: 109.8 kB / 0.5103 GB, free: 2.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1166, allocations: 0 / 0.5103 GB, free: 2.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003249/0.1169, allocations: 186.2 kB / 0.5105 GB, free: 1.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1169, allocations: 7.984 kB / 0.5105 GB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1169, allocations: 4 kB / 0.5105 GB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.1171, allocations: 28.84 kB / 0.5106 GB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1172, allocations: 31.92 kB / 0.5106 GB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.1186, allocations: 1.469 MB / 0.512 GB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1187, allocations: 23.92 kB / 0.512 GB, free: 152 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.1187, allocations: 8.062 kB / 0.512 GB, free: 144 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.0001241/0.1188, allocations: 129.8 kB / 0.5122 GB, free: 4 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/0.1189, allocations: 19.84 kB / 0.5122 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.1189, allocations: 25.45 kB / 0.5122 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.119, allocations: 4 kB / 0.5122 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.119, allocations: 0 / 0.5122 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.119, allocations: 0 / 0.5122 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.1192, allocations: 265.4 kB / 0.5125 GB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1193, allocations: 7.938 kB / 0.5125 GB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.1194, allocations: 19.98 kB / 0.5125 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001421/0.1195, allocations: 28.84 kB / 0.5125 GB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.1195, allocations: 4 kB / 0.5125 GB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/0.1209, allocations: 1.465 MB / 0.514 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1209, allocations: 0 / 0.514 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.1213, allocations: 231.8 kB / 0.5142 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.791e-05/0.1214, allocations: 117 kB / 0.5143 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.1215, allocations: 7.984 kB / 0.5143 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.1216, allocations: 4 kB / 0.5143 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.46e-05/0.1216, allocations: 23.91 kB / 0.5143 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.1217, allocations: 4 kB / 0.5143 GB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.1218, allocations: 129.2 kB / 0.5145 GB, free: 13.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1218, allocations: 0 / 0.5145 GB, free: 13.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.1221, allocations: 55.95 kB / 0.5145 GB, free: 13.38 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.0007355/0.1228, allocations: 0.7673 MB / 0.5153 GB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004016/0.1232, allocations: 218.8 kB / 0.5155 GB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1232, allocations: 8.062 kB / 0.5155 GB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.1235, allocations: 170.6 kB / 0.5156 GB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1237, allocations: 31.98 kB / 0.5157 GB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.1263, allocations: 2.086 MB / 0.5177 GB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.1267, allocations: 0.7359 MB / 0.5184 GB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.373e-05/0.1268, allocations: 13.55 kB / 0.5184 GB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.915e-05/0.1269, allocations: 55.42 kB / 0.5185 GB, free: 9.109 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1269, allocations: 4 kB / 0.5185 GB, free: 9.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.1581, allocations: 4.212 MB / 0.5226 GB, free: 5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.59/9.748, allocations: 8 kB / 0.5226 GB, free: 4.992 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)