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.0009116/0.0009116, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 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 0.9223/0.9223, allocations: 177.1 MB / 199.4 MB, free: 5.922 MB / 186.7 MB " [Timeout remaining time 179] 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.001148/0.001148, allocations: 160.5 kB / 256 MB, free: 13.33 MB / 250.7 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.02356/0.02356, allocations: 6.668 MB / 319 MB, free: 26.75 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.845e-06/2.845e-06, allocations: 0 / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.329e-05/3.614e-05, allocations: 4.812 kB / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003847/0.003883, allocations: 2.331 MB / 447.7 MB, free: 35.29 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.004884, allocations: 0.5882 MB / 448.3 MB, free: 34.7 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.004998, allocations: 7.938 kB / 448.3 MB, free: 34.69 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.005125, allocations: 27.7 kB / 448.3 MB, free: 34.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001155/0.00524, allocations: 75.3 kB / 448.4 MB, free: 34.59 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.005449, allocations: 55.86 kB / 448.5 MB, free: 34.53 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000198/0.005647, allocations: 262.6 kB / 448.7 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.005793, allocations: 58.66 kB / 448.8 MB, free: 34.22 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.005912, allocations: 139.7 kB / 448.9 MB, free: 34.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.006019, allocations: 67.78 kB / 449 MB, free: 34.02 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.00605, allocations: 20 kB / 449 MB, free: 34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.165e-05/0.006072, allocations: 20 kB / 449 MB, free: 33.98 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.012e-05/0.006102, allocations: 43.78 kB / 449.1 MB, free: 33.94 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.788e-05/0.00616, allocations: 75.83 kB / 449.1 MB, free: 33.86 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.006354, allocations: 231.2 kB / 449.4 MB, free: 33.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.006359, allocations: 0 / 449.4 MB, free: 33.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.00636, allocations: 4 kB / 449.4 MB, free: 33.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.006367, allocations: 3.938 kB / 449.4 MB, free: 33.63 MB / 330.7 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.0005401/0.006907, allocations: 441.2 kB / 449.8 MB, free: 33.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.006948, allocations: 12.03 kB / 449.8 MB, free: 33.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.615e-05/0.006984, allocations: 50.73 kB / 449.9 MB, free: 33.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.007025, allocations: 24.8 kB / 449.9 MB, free: 33.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.007291, allocations: 181.3 kB / 450.1 MB, free: 32.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.007305, allocations: 12.38 kB / 450.1 MB, free: 32.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.007333, allocations: 20.38 kB / 450.1 MB, free: 32.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.007542, allocations: 225.5 kB / 450.3 MB, free: 32.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.007554, allocations: 192 / 450.3 MB, free: 32.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.007569, allocations: 8.125 kB / 450.3 MB, free: 32.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.007575, allocations: 4 kB / 450.3 MB, free: 32.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.007712, allocations: 115.8 kB / 450.4 MB, free: 32.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.008371, allocations: 0.6696 MB / 451.1 MB, free: 31.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.008575, allocations: 118.7 kB / 451.2 MB, free: 31.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.744e-05/0.008632, allocations: 52.83 kB / 451.3 MB, free: 31.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.008645, allocations: 0 / 451.3 MB, free: 31.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001242/0.008769, allocations: 121.1 kB / 451.4 MB, free: 31.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.784e-06/0.008771, allocations: 0 / 451.4 MB, free: 31.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.000423/0.009194, allocations: 220.9 kB / 451.6 MB, free: 31.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.009221, allocations: 51.41 kB / 451.7 MB, free: 31.15 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.33e-05/0.009314, allocations: 191 kB / 451.9 MB, free: 30.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.009325, allocations: 29.7 kB / 451.9 MB, free: 30.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.009376, allocations: 140.3 kB / 452 MB, free: 30.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.009399, allocations: 55.58 kB / 452.1 MB, free: 30.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.885e-05/0.009438, allocations: 33.7 kB / 452.1 MB, free: 30.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.368e-05/0.009471, allocations: 326.8 kB / 452.4 MB, free: 30.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.352e-05/0.009515, allocations: 35.98 kB / 452.5 MB, free: 30.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.033e-05/0.009565, allocations: 78.67 kB / 452.5 MB, free: 30.23 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.259e-05/0.009658, allocations: 104.2 kB / 452.6 MB, free: 30.11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.00966, allocations: 3.938 kB / 452.6 MB, free: 30.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000181/0.009841, allocations: 181.3 kB / 452.8 MB, free: 29.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.009855, allocations: 12.12 kB / 452.8 MB, free: 29.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.009861, allocations: 0 / 452.8 MB, free: 29.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.01002, allocations: 36.83 kB / 452.9 MB, free: 29.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.715e-05/0.0101, allocations: 27.98 kB / 452.9 MB, free: 29.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006542/0.01075, allocations: 1.366 MB / 454.3 MB, free: 28.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.001e-05/0.01081, allocations: 11.95 kB / 454.3 MB, free: 28.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.01082, allocations: 8 kB / 454.3 MB, free: 28.34 MB / 330.7 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 7.753e-05/0.0109, allocations: 141.7 kB / 454.4 MB, free: 28.19 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.01091, allocations: 15.91 kB / 454.4 MB, free: 28.17 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.01094, allocations: 25.45 kB / 454.5 MB, free: 28.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.01094, allocations: 3.938 kB / 454.5 MB, free: 28.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.01094, allocations: 4 kB / 454.5 MB, free: 28.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.01095, allocations: 0 / 454.5 MB, free: 28.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.01108, allocations: 208.6 kB / 454.7 MB, free: 27.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01108, allocations: 7.938 kB / 454.7 MB, free: 27.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.979e-05/0.01114, allocations: 19.98 kB / 454.7 MB, free: 27.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.017e-05/0.01122, allocations: 32.84 kB / 454.7 MB, free: 27.83 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.01123, allocations: 7.938 kB / 454.7 MB, free: 27.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004365/0.01167, allocations: 1.358 MB / 456.1 MB, free: 26.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.01167, allocations: 0 / 456.1 MB, free: 26.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002044/0.01187, allocations: 237.7 kB / 456.3 MB, free: 26.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.582e-05/0.01191, allocations: 19.92 kB / 456.3 MB, free: 26.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.01192, allocations: 4.125 kB / 456.4 MB, free: 26.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.126e-05/0.01197, allocations: 15.98 kB / 456.4 MB, free: 26.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.01202, allocations: 15.91 kB / 456.4 MB, free: 26.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.01203, allocations: 11.94 kB / 456.4 MB, free: 26.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.01208, allocations: 141.1 kB / 456.5 MB, free: 25.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01208, allocations: 0 / 456.5 MB, free: 25.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001754/0.01226, allocations: 55.89 kB / 456.6 MB, free: 25.84 MB / 330.7 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.0003447/0.0126, allocations: 0.7642 MB / 457.4 MB, free: 25.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000279/0.01288, allocations: 222.6 kB / 457.6 MB, free: 24.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01288, allocations: 0 / 457.6 MB, free: 24.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.01298, allocations: 162.6 kB / 457.7 MB, free: 24.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.0132, allocations: 35.92 kB / 457.8 MB, free: 24.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.01463, allocations: 2.053 MB / 459.8 MB, free: 22.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.846e-05/0.01469, allocations: 124.9 kB / 459.9 MB, free: 22.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.84e-05/0.01475, allocations: 17.48 kB / 460 MB, free: 22.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.032e-05/0.01481, allocations: 52.48 kB / 460 MB, free: 22.23 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01481, allocations: 0 / 460 MB, free: 22.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.03421, allocations: 5.119 MB / 465.1 MB, free: 17.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.084/7.118, allocations: 12 kB / 465.1 MB, free: 17.26 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.209894645027816] Failed to read output from testmodel.py, exit status != 0: 7.210106582380831 7.219172591 7.211359453 Calling exit ...