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.001492/0.001492, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.00172/0.00172, allocations: 215.2 kB / 22.26 MB, free: 5.078 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.372/1.372, allocations: 230.6 MB / 256 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] 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.1333/0.1333, allocations: 23.85 MB / 336.3 MB, free: 11.33 MB / 270.1 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: Chemical 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.001943/0.001943, allocations: 67.89 kB / 471.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.285, allocations: 59.86 MB / 0.5186 GB, free: 9.578 MB / 382.1 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.03311/0.3181, allocations: 26.3 MB / 0.5442 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.3293, allocations: 8.413 MB / 0.5525 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008524/0.3302, allocations: 19.88 kB / 0.5525 GB, free: 5.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00236/0.3325, allocations: 0.797 MB / 0.5533 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.3341, allocations: 0.5473 MB / 0.5538 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.3359, allocations: 0.7451 MB / 0.5545 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.3376, allocations: 1.125 MB / 0.5556 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.338, allocations: 160.8 kB / 0.5558 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.3385, allocations: 383.8 kB / 0.5561 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005631/0.339, allocations: 419.2 kB / 0.5565 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.3391, allocations: 84 kB / 0.5566 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003478/0.3426, allocations: 1.558 MB / 0.5581 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003008/0.3429, allocations: 271.5 kB / 0.5584 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005615/0.3435, allocations: 0.5429 MB / 0.5589 GB, free: 196 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004115/0.3476, allocations: 2.494 MB / 0.5614 GB, free: 14.35 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3476, allocations: 0 / 0.5614 GB, free: 14.35 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3476, allocations: 0.75 kB / 0.5614 GB, free: 14.35 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.3476, allocations: 0 / 0.5614 GB, free: 14.35 MB / 414.1 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.002466/0.3501, allocations: 1.411 MB / 0.5627 GB, free: 12.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3501, allocations: 8.031 kB / 0.5627 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001729/0.3503, allocations: 156.7 kB / 0.5629 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005679/0.3509, allocations: 216 kB / 0.5631 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008596/0.3517, allocations: 0.5367 MB / 0.5636 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.3519, allocations: 166 kB / 0.5638 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.352, allocations: 92.31 kB / 0.5639 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004061/0.3561, allocations: 3.791 MB / 0.5676 GB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.3561, allocations: 3.938 kB / 0.5676 GB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.788e-05/0.3562, allocations: 35.98 kB / 0.5676 GB, free: 7.871 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/0.3563, allocations: 142 kB / 0.5678 GB, free: 7.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006863/0.3632, allocations: 6.764 MB / 0.5744 GB, free: 0.957 MB / 414.1 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.01357/0.3768, allocations: 9.515 MB / 0.5836 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.3794, allocations: 1.74 MB / 0.5853 GB, free: 5.551 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00174/0.3811, allocations: 1.348 MB / 0.5867 GB, free: 4.199 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001739/0.3828, allocations: 0.6375 MB / 0.5873 GB, free: 3.562 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.3829, allocations: 46.44 kB / 0.5873 GB, free: 3.508 MB / 430.1 MB Notification: Performance of pre-optimization done (n=42): time 2.034e-06/0.3829, allocations: 0 / 0.5873 GB, free: 3.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=68): time 0.05253/0.4354, allocations: 15.26 MB / 0.6022 GB, free: 4.191 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06961/0.505, allocations: 22.29 MB / 0.624 GB, free: 13.61 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.5065, allocations: 1.059 MB / 0.625 GB, free: 12.53 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002453/0.5067, allocations: 41.7 kB / 0.6251 GB, free: 12.48 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004341/0.5072, allocations: 0.5161 MB / 0.6256 GB, free: 11.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003693/0.5075, allocations: 249.9 kB / 0.6258 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000665/0.5082, allocations: 262.5 kB / 0.6261 GB, free: 11.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5083, allocations: 334 kB / 0.6264 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00356/0.5119, allocations: 2.423 MB / 0.6287 GB, free: 8.691 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003383/0.5153, allocations: 2.562 MB / 0.6313 GB, free: 6.078 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004944/0.5202, allocations: 3.349 MB / 0.6345 GB, free: 2.68 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5202, allocations: 0 / 0.6345 GB, free: 2.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.01624/0.5365, allocations: 6.796 MB / 0.6412 GB, free: 11.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.5365, allocations: 14.44 kB / 0.6412 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.5365, allocations: 12.12 kB / 0.6412 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/0.5501, allocations: 3.452 MB / 0.6446 GB, free: 8.375 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/0.5522, allocations: 315.6 kB / 0.6449 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02221/0.5744, allocations: 13.48 MB / 0.658 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.5762, allocations: 83.92 kB / 0.6581 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000414/0.5766, allocations: 175.9 kB / 0.6583 GB, free: 10.15 MB / 0.4981 GB 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.0007882/0.5774, allocations: 330.1 kB / 0.6586 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004266/0.5778, allocations: 107.3 kB / 0.6587 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/0.5912, allocations: 4.448 MB / 0.663 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01136/0.6025, allocations: 3.665 MB / 0.6666 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.6026, allocations: 4 kB / 0.6666 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.6026, allocations: 3.984 kB / 0.6666 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01704/0.6196, allocations: 7.36 MB / 0.6738 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.6196, allocations: 0 / 0.6738 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.6211, allocations: 180.1 kB / 0.674 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02711/0.6482, allocations: 3.708 MB / 0.6776 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002081/0.6484, allocations: 43.95 kB / 0.6776 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/0.6616, allocations: 6.471 MB / 0.684 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05658/0.7182, allocations: 14.59 MB / 0.6982 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/0.7327, allocations: 5.709 MB / 0.7038 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004594/0.7331, allocations: 139.2 kB / 0.7039 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003227/0.7335, allocations: 19.98 kB / 0.7039 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.7348, allocations: 55.92 kB / 0.704 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003689/0.7351, allocations: 104.2 kB / 0.7041 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001886/0.7353, allocations: 75.95 kB / 0.7042 GB, free: 10.45 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001503/0.7368, allocations: 1.02 MB / 0.7052 GB, free: 9.414 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7368, allocations: 0 / 0.7052 GB, free: 9.414 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002058/0.7389, allocations: 0.5777 MB / 0.7057 GB, free: 8.836 MB / 0.545 GB 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.01368/0.7526, allocations: 6.077 MB / 0.7117 GB, free: 2.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006345/0.7589, allocations: 3.673 MB / 0.7152 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.7589, allocations: 0 / 0.7152 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003403/0.7623, allocations: 1.457 MB / 0.7167 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.7636, allocations: 256.5 kB / 0.7169 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2355/0.9991, allocations: 27.86 MB / 0.7441 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006416/0.9998, allocations: 1.133 MB / 0.7452 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001177/1.001, allocations: 295.6 kB / 0.7455 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009073/1.002, allocations: 466.7 kB / 0.7459 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of SimCode: time 9.82e-07/1.002, allocations: 0 / 0.7459 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09381/1.096, allocations: 61.37 MB / 0.8059 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.78, allocations: 6.438 kB / 0.8059 GB, free: 131.8 MB / 0.5606 GB " [Timeout remaining time 643] (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: 19.39560426400567] Failed to read output from testmodel.py, exit status != 0: 16.916285947998404 16.925224994 16.575524943 Calling exit ...