Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 115.2 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 183.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07752/0.07752, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 64.09 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.0908, allocations: 53.62 MB / 479.5 MB, free: 5.789 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.03754/0.1284, allocations: 28.53 MB / 0.4961 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2034/0.3317, allocations: 17.81 MB / 0.5135 GB, free: 18.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009089/0.3327, allocations: 23.38 kB / 0.5135 GB, free: 18.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.3338, allocations: 489.7 kB / 0.514 GB, free: 18.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002735/0.3365, allocations: 1.314 MB / 0.5153 GB, free: 17.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005629/0.3422, allocations: 2.541 MB / 0.5178 GB, free: 16.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002341/0.3445, allocations: 2.287 MB / 0.52 GB, free: 16.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001639/0.3462, allocations: 1.519 MB / 0.5215 GB, free: 16.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.3474, allocations: 1.035 MB / 0.5225 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001271/0.3487, allocations: 1.151 MB / 0.5236 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003434/0.349, allocations: 224.8 kB / 0.5238 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005661/0.3547, allocations: 1.818 MB / 0.5256 GB, free: 14.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004205/0.3551, allocations: 0.5004 MB / 0.5261 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3562, allocations: 1.095 MB / 0.5272 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007952/0.3641, allocations: 4.182 MB / 0.5312 GB, free: 12.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3642, allocations: 0 / 0.5312 GB, free: 12.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3642, allocations: 0 / 0.5312 GB, free: 12.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.97e-05/0.3642, allocations: 0 / 0.5312 GB, free: 12.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.00421/0.3685, allocations: 2.487 MB / 0.5337 GB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3685, allocations: 8.906 kB / 0.5337 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001575/0.3701, allocations: 438.7 kB / 0.5341 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.3717, allocations: 1.109 MB / 0.5352 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3718, allocations: 184.7 kB / 0.5353 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002629/0.3721, allocations: 198.6 kB / 0.5355 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/0.375, allocations: 2.129 MB / 0.5376 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/0.3751, allocations: 9.469 kB / 0.5376 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.3753, allocations: 81.06 kB / 0.5377 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.3753, allocations: 47.78 kB / 0.5378 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002929/0.3782, allocations: 2.242 MB / 0.5399 GB, free: 6.961 MB / 382.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.007841/0.3861, allocations: 7.316 MB / 0.5471 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002572/0.3887, allocations: 1.731 MB / 0.5488 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008641/0.3895, allocations: 0.5772 MB / 0.5493 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008232/0.3978, allocations: 6.377 MB / 0.5556 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.3978, allocations: 42.22 kB / 0.5556 GB, free: 6.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 3.036e-06/0.3978, allocations: 0 / 0.5556 GB, free: 6.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01791/0.4158, allocations: 4.85 MB / 0.5603 GB, free: 1.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.4158, allocations: 119.8 kB / 0.5605 GB, free: 1.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.4169, allocations: 0.9156 MB / 0.5614 GB, free: 376 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-05/0.417, allocations: 45.7 kB / 0.5614 GB, free: 324 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005603/0.4176, allocations: 0.9308 MB / 0.5623 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.4179, allocations: 380.5 kB / 0.5627 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004426/0.4183, allocations: 343.2 kB / 0.563 GB, free: 14.67 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.626e-05/0.4184, allocations: 305.1 kB / 0.5633 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000793/0.4192, allocations: 461.5 kB / 0.5637 GB, free: 13.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.4206, allocations: 1.199 MB / 0.5649 GB, free: 12.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002509/0.4231, allocations: 1.794 MB / 0.5666 GB, free: 10.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.67e-05/0.4231, allocations: 11.94 kB / 0.5667 GB, free: 10.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005025/0.4281, allocations: 2.063 MB / 0.5687 GB, free: 8.234 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.4282, allocations: 18.34 kB / 0.5687 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.4282, allocations: 30.72 kB / 0.5687 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002473/0.4307, allocations: 379.2 kB / 0.5691 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.4325, allocations: 450 kB / 0.5695 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005392/0.4379, allocations: 4.075 MB / 0.5735 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.4391, allocations: 82.34 kB / 0.5736 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.4393, allocations: 108 kB / 0.5737 GB, free: 2.848 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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 (219): * Single equations (assignments): 216 * Array equations: 0 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006738/0.44, allocations: 381 kB / 0.574 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002964/0.4403, allocations: 122.5 kB / 0.5742 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004737/0.4451, allocations: 1.611 MB / 0.5757 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.4451, allocations: 6.609 kB / 0.5757 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.4451, allocations: 4 kB / 0.5757 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.4454, allocations: 183.4 kB / 0.5759 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.4456, allocations: 27.98 kB / 0.5759 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006905/0.4463, allocations: 20 kB / 0.576 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.4465, allocations: 91.53 kB / 0.576 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00405/0.4506, allocations: 1.53 MB / 0.5775 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002515/0.4531, allocations: 1.837 MB / 0.5793 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006618/0.4538, allocations: 443.8 kB / 0.5798 GB, free: 12.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007349/0.4545, allocations: 0.5777 MB / 0.5803 GB, free: 12.06 MB / 430.1 MB Notification: Performance of Backend: time 1.432e-06/0.4545, allocations: 2.656 kB / 0.5803 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004791/0.4593, allocations: 2.159 MB / 0.5824 GB, free: 10.02 MB / 430.1 MB Notification: Performance of SimCode: time 0.004522/0.4639, allocations: 3.325 MB / 0.5857 GB, free: 6.797 MB / 430.1 MB Notification: Performance of Templates: time 0.04538/0.5093, allocations: 29.57 MB / 0.6146 GB, free: 9.617 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.WaterElectrolysis.makefile (rm -f Chemical_Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.WaterElectrolysis.pipe >> ../files/Chemical_Chemical.Examples.WaterElectrolysis.sim & ./Chemical_Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)