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.001371/0.001371, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001528/0.001528, allocations: 212.2 kB / 22.24 MB, free: 5.262 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.551/1.551, allocations: 230.6 MB / 256 MB, free: 7.789 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.1629/0.1629, allocations: 23.88 MB / 336.3 MB, free: 10.96 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.002051/0.002051, allocations: 71.89 kB / 471.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4383/0.4404, allocations: 59.86 MB / 0.5185 GB, free: 9.586 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.07518/0.5155, allocations: 25.82 MB / 0.5437 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.5288, allocations: 7.242 MB / 0.5508 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001906/0.5307, allocations: 15.88 kB / 0.5508 GB, free: 7.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003477/0.5341, allocations: 0.719 MB / 0.5515 GB, free: 6.594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.5367, allocations: 0.5518 MB / 0.5521 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00314/0.5398, allocations: 0.743 MB / 0.5528 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002964/0.5428, allocations: 1.119 MB / 0.5539 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003941/0.5432, allocations: 160.7 kB / 0.554 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006152/0.5438, allocations: 376.2 kB / 0.5544 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000575/0.5444, allocations: 371.4 kB / 0.5548 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.5445, allocations: 84 kB / 0.5548 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.5478, allocations: 0.9638 MB / 0.5558 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003556/0.5481, allocations: 262.6 kB / 0.556 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005372/0.5487, allocations: 416.1 kB / 0.5564 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005619/0.5543, allocations: 2.313 MB / 0.5587 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.5543, allocations: 8.688 kB / 0.5587 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5543, allocations: 0 / 0.5587 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.5543, allocations: 0 / 0.5587 GB, free: 0.5078 MB / 398.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.003221/0.5575, allocations: 1.405 MB / 0.5601 GB, free: 15.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.5576, allocations: 8.031 kB / 0.5601 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.5578, allocations: 154 kB / 0.5602 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007049/0.5585, allocations: 221.4 kB / 0.5604 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.5596, allocations: 0.5324 MB / 0.5609 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/0.5598, allocations: 176.3 kB / 0.5611 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001543/0.56, allocations: 92.31 kB / 0.5612 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004771/0.5648, allocations: 3.795 MB / 0.5649 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.5648, allocations: 4 kB / 0.5649 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-05/0.5649, allocations: 36 kB / 0.5649 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001926/0.5651, allocations: 142 kB / 0.5651 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008053/0.5731, allocations: 6.752 MB / 0.5717 GB, free: 3.359 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.01546/0.5886, allocations: 8.996 MB / 0.5805 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.5914, allocations: 1.739 MB / 0.5822 GB, free: 8.535 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001977/0.5934, allocations: 1.348 MB / 0.5835 GB, free: 7.184 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001988/0.5954, allocations: 0.6337 MB / 0.5841 GB, free: 6.551 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.5954, allocations: 38.56 kB / 0.5841 GB, free: 6.504 MB / 430.1 MB Notification: Performance of pre-optimization done (n=42): time 3.587e-06/0.5954, allocations: 0 / 0.5841 GB, free: 6.504 MB / 430.1 MB Notification: Performance of matching and sorting (n=68): time 0.05569/0.6511, allocations: 15.29 MB / 0.5991 GB, free: 7.164 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07645/0.7276, allocations: 21.98 MB / 0.6205 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.7294, allocations: 1.062 MB / 0.6216 GB, free: 15.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003468/0.7297, allocations: 37.86 kB / 0.6216 GB, free: 15.76 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005711/0.7303, allocations: 0.5199 MB / 0.6221 GB, free: 15.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004063/0.7307, allocations: 245.9 kB / 0.6223 GB, free: 14.99 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000764/0.7314, allocations: 270.5 kB / 0.6226 GB, free: 14.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.7316, allocations: 330.1 kB / 0.6229 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003624/0.7353, allocations: 2.419 MB / 0.6253 GB, free: 11.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/0.739, allocations: 2.565 MB / 0.6278 GB, free: 9.359 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005585/0.7446, allocations: 3.349 MB / 0.6311 GB, free: 5.961 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.7446, allocations: 0 / 0.6311 GB, free: 5.961 MB / 478.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.01746/0.762, allocations: 6.819 MB / 0.6377 GB, free: 15.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.7621, allocations: 7.938 kB / 0.6377 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.7621, allocations: 4 kB / 0.6377 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01446/0.7766, allocations: 3.445 MB / 0.6411 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/0.7789, allocations: 315.6 kB / 0.6414 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02452/0.8034, allocations: 13.31 MB / 0.6544 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.8053, allocations: 83.8 kB / 0.6545 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003905/0.8057, allocations: 175.9 kB / 0.6546 GB, free: 13.6 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.001021/0.8067, allocations: 341.5 kB / 0.655 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000454/0.8072, allocations: 107.3 kB / 0.6551 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/0.8213, allocations: 4.437 MB / 0.6594 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01259/0.8339, allocations: 3.681 MB / 0.663 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.8339, allocations: 0 / 0.663 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/0.8339, allocations: 3.984 kB / 0.663 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01827/0.8522, allocations: 6.788 MB / 0.6696 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.8522, allocations: 4 kB / 0.6696 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/0.8538, allocations: 176.1 kB / 0.6698 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02937/0.8831, allocations: 3.708 MB / 0.6734 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002621/0.8834, allocations: 47.95 kB / 0.6735 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/0.8977, allocations: 6.335 MB / 0.6796 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.06021/0.9579, allocations: 14.28 MB / 0.6936 GB, free: 5.059 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.973, allocations: 5.713 MB / 0.6992 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004432/0.9735, allocations: 131.3 kB / 0.6993 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.9738, allocations: 23.94 kB / 0.6993 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.9751, allocations: 55.92 kB / 0.6994 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003614/0.9755, allocations: 100.2 kB / 0.6995 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/0.9757, allocations: 79.95 kB / 0.6995 GB, free: 14.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001512/0.9772, allocations: 1.012 MB / 0.7005 GB, free: 13.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9772, allocations: 0 / 0.7005 GB, free: 13.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002132/0.9793, allocations: 0.5856 MB / 0.7011 GB, free: 13.29 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.01507/0.9944, allocations: 6.081 MB / 0.707 GB, free: 7.129 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007152/1.002, allocations: 3.677 MB / 0.7106 GB, free: 3.434 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.002, allocations: 0 / 0.7106 GB, free: 3.434 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003804/1.005, allocations: 1.465 MB / 0.7121 GB, free: 1.961 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/1.007, allocations: 256.7 kB / 0.7123 GB, free: 1.719 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2783/1.285, allocations: 27.86 MB / 0.7395 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007254/1.286, allocations: 0.5337 MB / 0.74 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0015/1.287, allocations: 302.9 kB / 0.7403 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/1.288, allocations: 463.1 kB / 0.7408 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.263e-06/1.288, allocations: 0 / 0.7408 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1057/1.394, allocations: 64.17 MB / 0.8034 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.47/16.87, allocations: 11.86 kB / 0.8034 GB, free: 133.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.96129807503894] Failed to read output from testmodel.py, exit status != 0: 17.019626868888736 17.029949998 16.473225397 Calling exit ...