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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 103 kB / 16.45 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.513/1.513, allocations: 230.6 MB / 249.8 MB, free: 9.227 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 208.5 kB / 306 MB, free: 4.316 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04185/0.04185, allocations: 8.909 MB / 371 MB, free: 3.449 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002462, allocations: 84.97 kB / 495.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1108, allocations: 55.59 MB / 0.5384 GB, free: 6.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003797/0.1146, allocations: 2.449 MB / 0.5408 GB, free: 4.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.1157, allocations: 0.6193 MB / 0.5414 GB, free: 3.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1158, allocations: 0 / 0.5414 GB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.116, allocations: 31.66 kB / 0.5414 GB, free: 3.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.1161, allocations: 71.39 kB / 0.5415 GB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.1163, allocations: 51.88 kB / 0.5415 GB, free: 3.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.1166, allocations: 254.8 kB / 0.5418 GB, free: 2.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.1168, allocations: 52.3 kB / 0.5418 GB, free: 2.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.1169, allocations: 95.64 kB / 0.5419 GB, free: 2.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1171, allocations: 103.5 kB / 0.542 GB, free: 2.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.1171, allocations: 16 kB / 0.542 GB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.424e-05/0.1171, allocations: 20 kB / 0.542 GB, free: 2.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.1172, allocations: 43.78 kB / 0.5421 GB, free: 2.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1173, allocations: 111.5 kB / 0.5422 GB, free: 2.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.1176, allocations: 231 kB / 0.5424 GB, free: 2.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1176, allocations: 0 / 0.5424 GB, free: 2.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1176, allocations: 0 / 0.5424 GB, free: 2.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.1176, allocations: 0 / 0.5424 GB, free: 2.32 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.0008617/0.1185, allocations: 0.5062 MB / 0.5429 GB, free: 1.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1186, allocations: 8.031 kB / 0.5429 GB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.188e-05/0.1186, allocations: 50.73 kB / 0.543 GB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.471e-05/0.1187, allocations: 24.8 kB / 0.543 GB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.119, allocations: 240.8 kB / 0.5432 GB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.119, allocations: 16.38 kB / 0.5432 GB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.1191, allocations: 20.38 kB / 0.5433 GB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003587/0.1194, allocations: 191.3 kB / 0.5434 GB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1195, allocations: 4 kB / 0.5434 GB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.1195, allocations: 4 kB / 0.5434 GB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1195, allocations: 4 kB / 0.5434 GB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.1197, allocations: 119.9 kB / 0.5436 GB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.1209, allocations: 0.7365 MB / 0.5443 GB, free: 240 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.1212, allocations: 126.7 kB / 0.5444 GB, free: 104 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.292e-05/0.1213, allocations: 48.84 kB / 0.5444 GB, free: 52 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.1214, allocations: 4 kB / 0.5444 GB, free: 48 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/0.1215, allocations: 99.25 kB / 0.5445 GB, free: 15.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.1216, allocations: 3.938 kB / 0.5445 GB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006883/0.1222, allocations: 297 kB / 0.5448 GB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.1223, allocations: 51.41 kB / 0.5449 GB, free: 15.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.1225, allocations: 191.9 kB / 0.5451 GB, free: 15.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.1225, allocations: 25.7 kB / 0.5451 GB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1226, allocations: 148.3 kB / 0.5452 GB, free: 15.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.131e-05/0.1226, allocations: 47.53 kB / 0.5453 GB, free: 15.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.1227, allocations: 37.7 kB / 0.5453 GB, free: 15.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1229, allocations: 330.8 kB / 0.5456 GB, free: 14.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.024e-05/0.1229, allocations: 35.98 kB / 0.5457 GB, free: 14.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.481e-05/0.123, allocations: 68.28 kB / 0.5457 GB, free: 14.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.1232, allocations: 115 kB / 0.5458 GB, free: 14.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1232, allocations: 4 kB / 0.5458 GB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000354/0.1236, allocations: 174.2 kB / 0.546 GB, free: 14.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1236, allocations: 8 kB / 0.546 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1236, allocations: 0 / 0.546 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002107/0.1238, allocations: 40.77 kB / 0.5461 GB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.1239, allocations: 24.12 kB / 0.5461 GB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.1254, allocations: 1.477 MB / 0.5475 GB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.1255, allocations: 15.91 kB / 0.5475 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.1255, allocations: 12 kB / 0.5475 GB, free: 12.61 MB / 366.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.0001492/0.1256, allocations: 129.7 kB / 0.5477 GB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.1257, allocations: 23.84 kB / 0.5477 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.921e-05/0.1257, allocations: 21.66 kB / 0.5477 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1257, allocations: 3.984 kB / 0.5477 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1257, allocations: 8.062 kB / 0.5477 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1257, allocations: 0 / 0.5477 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.126, allocations: 261.4 kB / 0.548 GB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.126, allocations: 0 / 0.548 GB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1261, allocations: 19.94 kB / 0.548 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.1263, allocations: 36.83 kB / 0.548 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.1263, allocations: 0 / 0.548 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.1275, allocations: 1.466 MB / 0.5495 GB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1275, allocations: 0 / 0.5495 GB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/0.1279, allocations: 237.8 kB / 0.5497 GB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.25e-05/0.128, allocations: 105 kB / 0.5498 GB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.128, allocations: 7.938 kB / 0.5498 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.1281, allocations: 11.98 kB / 0.5498 GB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.177e-05/0.1282, allocations: 11.98 kB / 0.5498 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1282, allocations: 4 kB / 0.5498 GB, free: 10.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.1283, allocations: 136.1 kB / 0.5499 GB, free: 9.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1283, allocations: 8 kB / 0.55 GB, free: 9.891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000278/0.1286, allocations: 59.89 kB / 0.55 GB, free: 9.832 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.0007038/0.1293, allocations: 0.7627 MB / 0.5508 GB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004477/0.1297, allocations: 226.5 kB / 0.551 GB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1297, allocations: 0 / 0.551 GB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.1299, allocations: 162.7 kB / 0.5511 GB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.1302, allocations: 39.89 kB / 0.5512 GB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.1328, allocations: 2.071 MB / 0.5532 GB, free: 6.418 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.1331, allocations: 0.732 MB / 0.5539 GB, free: 5.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.967e-05/0.1332, allocations: 21.53 kB / 0.5539 GB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.31e-05/0.1333, allocations: 55.41 kB / 0.554 GB, free: 5.586 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1333, allocations: 0 / 0.554 GB, free: 5.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.1636, allocations: 4.257 MB / 0.5581 GB, free: 1.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.697/9.86, allocations: 10.97 kB / 0.5581 GB, free: 1.43 MB / 366.1 MB " [Timeout remaining time 650] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.870387196002412] Failed to read output from testmodel.py, exit status != 0: 9.942061869995086 9.958711024 9.837599315 Calling exit ...