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.001327/0.001327, allocations: 110.3 kB / 16.42 MB, free: 6.469 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.001338/0.001338, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.282/1.282, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07246/0.07246, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.89 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.0837, allocations: 53.61 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.03526/0.119, allocations: 28.49 MB / 0.4961 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1938/0.3128, allocations: 17.8 MB / 0.5134 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009592/0.3138, allocations: 25.06 kB / 0.5135 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.3149, allocations: 490.7 kB / 0.5139 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002747/0.3176, allocations: 1.309 MB / 0.5152 GB, free: 17.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005623/0.3233, allocations: 2.522 MB / 0.5177 GB, free: 16.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002361/0.3256, allocations: 2.282 MB / 0.5199 GB, free: 16.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001687/0.3273, allocations: 1.514 MB / 0.5214 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.3286, allocations: 1.032 MB / 0.5224 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.3298, allocations: 1.154 MB / 0.5235 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003569/0.3302, allocations: 224.2 kB / 0.5237 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00511/0.3353, allocations: 1.818 MB / 0.5255 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003691/0.3357, allocations: 0.493 MB / 0.526 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008827/0.3366, allocations: 1.103 MB / 0.5271 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005966/0.3426, allocations: 4.178 MB / 0.5311 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3426, allocations: 3.938 kB / 0.5311 GB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3426, allocations: 2.688 kB / 0.5311 GB, free: 12.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.3426, allocations: 0 / 0.5311 GB, free: 12.06 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.003705/0.3463, allocations: 2.486 MB / 0.5336 GB, free: 10.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.3464, allocations: 13.44 kB / 0.5336 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.3479, allocations: 436.1 kB / 0.534 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.3493, allocations: 1.11 MB / 0.5351 GB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.3495, allocations: 179.2 kB / 0.5352 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/0.3497, allocations: 201 kB / 0.5354 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002823/0.3526, allocations: 2.136 MB / 0.5375 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.38e-05/0.3526, allocations: 3.938 kB / 0.5375 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.3528, allocations: 87.89 kB / 0.5376 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.3528, allocations: 47.44 kB / 0.5377 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.3556, allocations: 2.231 MB / 0.5398 GB, free: 6.922 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.007554/0.3632, allocations: 7.324 MB / 0.547 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.3658, allocations: 1.729 MB / 0.5487 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008249/0.3666, allocations: 0.5804 MB / 0.5492 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007922/0.3745, allocations: 6.374 MB / 0.5555 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.3746, allocations: 39.56 kB / 0.5555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 2.445e-06/0.3746, allocations: 2.656 kB / 0.5555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01765/0.3923, allocations: 4.844 MB / 0.5602 GB, free: 1.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.3923, allocations: 123.7 kB / 0.5604 GB, free: 1.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.3934, allocations: 0.9156 MB / 0.5613 GB, free: 376 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.214e-05/0.3935, allocations: 45.7 kB / 0.5613 GB, free: 324 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005688/0.3941, allocations: 0.9303 MB / 0.5622 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002878/0.3944, allocations: 385.7 kB / 0.5626 GB, free: 15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004283/0.3948, allocations: 347.2 kB / 0.5629 GB, free: 14.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.173e-05/0.3949, allocations: 301.1 kB / 0.5632 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007746/0.3957, allocations: 459.7 kB / 0.5636 GB, free: 13.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.3969, allocations: 1.2 MB / 0.5648 GB, free: 12.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.3991, allocations: 1.795 MB / 0.5666 GB, free: 10.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.3991, allocations: 10.66 kB / 0.5666 GB, free: 10.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004934/0.404, allocations: 2.06 MB / 0.5686 GB, free: 8.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4041, allocations: 16 kB / 0.5686 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.4041, allocations: 28.09 kB / 0.5686 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/0.4065, allocations: 384.8 kB / 0.569 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.4082, allocations: 447.3 kB / 0.5694 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005037/0.4132, allocations: 4.065 MB / 0.5734 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.4143, allocations: 86.39 kB / 0.5735 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.4145, allocations: 108 kB / 0.5736 GB, free: 2.844 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.0005978/0.4151, allocations: 383.7 kB / 0.5739 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.4153, allocations: 122.5 kB / 0.5741 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004572/0.4199, allocations: 1.619 MB / 0.5756 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.4199, allocations: 8.016 kB / 0.5756 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.4199, allocations: 4 kB / 0.5756 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.4201, allocations: 183.4 kB / 0.5758 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.4203, allocations: 24 kB / 0.5758 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/0.421, allocations: 26.64 kB / 0.5759 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.4212, allocations: 88.88 kB / 0.576 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003902/0.4251, allocations: 1.524 MB / 0.5774 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002459/0.4275, allocations: 1.837 MB / 0.5792 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006449/0.4282, allocations: 443.8 kB / 0.5797 GB, free: 12.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006752/0.4289, allocations: 0.5764 MB / 0.5802 GB, free: 12.06 MB / 430.1 MB Notification: Performance of Backend: time 3.31e-07/0.4289, allocations: 0 / 0.5802 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004441/0.4333, allocations: 2.164 MB / 0.5823 GB, free: 10.02 MB / 430.1 MB Notification: Performance of SimCode: time 0.004131/0.4375, allocations: 3.314 MB / 0.5856 GB, free: 6.801 MB / 430.1 MB Notification: Performance of Templates: time 0.04212/0.4796, allocations: 29.59 MB / 0.6145 GB, free: 9.609 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)