Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.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.0007546/0.0007546, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] 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.0008723/0.0008723, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9191/0.9191, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.08963/0.08963, allocations: 17.37 MB / 276.6 MB, free: 11.86 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 411.4 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.374e-05/2.576e-05, allocations: 2.281 kB / 411.4 MB, free: 13.18 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.02947/0.0295, allocations: 26.09 MB / 437.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00862/0.03812, allocations: 7.26 MB / 444.8 MB, free: 7.965 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.03925, allocations: 11.94 kB / 444.8 MB, free: 7.953 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.0415, allocations: 0.7265 MB / 445.5 MB, free: 7.387 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002112/0.04361, allocations: 0.5697 MB / 446.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.04601, allocations: 0.7608 MB / 446.8 MB, free: 6.312 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.04795, allocations: 1.164 MB / 448 MB, free: 5.262 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.04826, allocations: 160.5 kB / 448.2 MB, free: 5.113 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007242/0.04898, allocations: 0.5362 MB / 448.7 MB, free: 4.68 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004307/0.04942, allocations: 303.1 kB / 449 MB, free: 4.453 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.738e-05/0.0495, allocations: 87.98 kB / 449.1 MB, free: 4.367 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002646/0.05215, allocations: 0.961 MB / 450 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002715/0.05242, allocations: 281 kB / 450.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000364/0.05278, allocations: 327.6 kB / 450.6 MB, free: 3.008 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003954/0.05674, allocations: 2.349 MB / 453 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.05674, allocations: 0 / 453 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.05675, allocations: 0 / 453 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.05676, allocations: 0 / 453 MB, free: 0.8633 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.001802/0.05856, allocations: 1.395 MB / 454.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.05861, allocations: 8.031 kB / 454.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.05874, allocations: 152.8 kB / 454.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.05916, allocations: 216 kB / 454.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000677/0.05984, allocations: 0.5398 MB / 455.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001758/0.06002, allocations: 173.9 kB / 455.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.765e-05/0.0601, allocations: 84.36 kB / 455.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.06313, allocations: 3.784 MB / 459.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.06315, allocations: 192 / 459.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.954e-05/0.06321, allocations: 47.86 kB / 459.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.06334, allocations: 150 kB / 459.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00484/0.06818, allocations: 6.748 MB / 466.3 MB, free: 3.465 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008939/0.07712, allocations: 8.986 MB / 475.2 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.07887, allocations: 1.748 MB / 477 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.08003, allocations: 1.344 MB / 478.3 MB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009937/0.08102, allocations: 0.6298 MB / 479 MB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.08105, allocations: 38.56 kB / 479 MB, free: 6.613 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 4.048e-06/0.08105, allocations: 4 kB / 479 MB, free: 6.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=68): time 0.02996/0.111, allocations: 15.31 MB / 494.3 MB, free: 7.246 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03883/0.1498, allocations: 22.03 MB / 0.5042 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.1511, allocations: 1.066 MB / 0.5053 GB, free: 15.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002949/0.1514, allocations: 37.7 kB / 0.5053 GB, free: 15.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.1518, allocations: 0.5083 MB / 0.5058 GB, free: 15.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003459/0.1521, allocations: 250 kB / 0.5061 GB, free: 15.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004593/0.1526, allocations: 270.4 kB / 0.5063 GB, free: 14.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1527, allocations: 330 kB / 0.5066 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002319/0.155, allocations: 2.426 MB / 0.509 GB, free: 12.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002557/0.1576, allocations: 2.554 MB / 0.5115 GB, free: 9.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003311/0.1609, allocations: 3.345 MB / 0.5148 GB, free: 6.016 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.1609, allocations: 4 kB / 0.5148 GB, free: 6.012 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.009574/0.1705, allocations: 6.815 MB / 0.5214 GB, free: 15.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.1705, allocations: 12.03 kB / 0.5214 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1705, allocations: 4 kB / 0.5214 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007139/0.1776, allocations: 3.456 MB / 0.5248 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.1788, allocations: 319.5 kB / 0.5251 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01399/0.1928, allocations: 13.3 MB / 0.5381 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.1941, allocations: 79.92 kB / 0.5382 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/0.1944, allocations: 172.1 kB / 0.5383 GB, free: 13.64 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 65 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,8), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0007358/0.1951, allocations: 333.6 kB / 0.5387 GB, free: 13.31 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002616/0.1954, allocations: 115.2 kB / 0.5388 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007557/0.203, allocations: 4.445 MB / 0.5431 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006382/0.2093, allocations: 3.681 MB / 0.5467 GB, free: 5.027 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.2094, allocations: 0 / 0.5467 GB, free: 5.027 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.2094, allocations: 3.984 kB / 0.5467 GB, free: 5.023 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.2201, allocations: 6.796 MB / 0.5533 GB, free: 14.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.2201, allocations: 4 kB / 0.5534 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009954/0.2211, allocations: 172.1 kB / 0.5535 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01351/0.2346, allocations: 3.747 MB / 0.5572 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001956/0.2348, allocations: 43.95 kB / 0.5572 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008202/0.243, allocations: 6.339 MB / 0.5634 GB, free: 3.594 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03098/0.2739, allocations: 14.32 MB / 0.5774 GB, free: 5.012 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1991/0.473, allocations: 5.696 MB / 0.583 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.4734, allocations: 136.9 kB / 0.5831 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002672/0.4736, allocations: 21.28 kB / 0.5831 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007493/0.4744, allocations: 60.17 kB / 0.5832 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003045/0.4747, allocations: 93.45 kB / 0.5833 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.4748, allocations: 79.47 kB / 0.5833 GB, free: 156.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001088/0.4759, allocations: 1.014 MB / 0.5843 GB, free: 156.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4759, allocations: 0 / 0.5843 GB, free: 156.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00195/0.4779, allocations: 0.5795 MB / 0.5849 GB, free: 156.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 ($STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 1 ($cse15) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009607/0.4875, allocations: 6.087 MB / 0.5908 GB, free: 154.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005866/0.4934, allocations: 3.673 MB / 0.5944 GB, free: 152.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.4934, allocations: 2.688 kB / 0.5944 GB, free: 152.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002478/0.4958, allocations: 1.457 MB / 0.5958 GB, free: 152.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.497, allocations: 249.5 kB / 0.5961 GB, free: 152.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0339/0.5309, allocations: 27.43 MB / 0.6229 GB, free: 135.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.5314, allocations: 0.5305 MB / 0.6234 GB, free: 135.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001223/0.5327, allocations: 299 kB / 0.6237 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007487/0.5334, allocations: 471 kB / 0.6241 GB, free: 134.5 MB / 490.7 MB Notification: Performance of SimCode: time 3.075e-06/0.5334, allocations: 0 / 0.6241 GB, free: 134.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08369/0.6171, allocations: 63.83 MB / 0.6865 GB, free: 71.97 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.82, allocations: 8 kB / 0.6865 GB, free: 71.96 MB / 490.7 MB " [Timeout remaining time 649] (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.HeatingOfWater_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.022409304976463] Failed to read output from testmodel.py, exit status != 0: 11.13356030639261 10.944169099 10.885874136 Calling exit ...