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: "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005565/0.005565, allocations: 98.08 kB / 15.73 MB, free: 6.004 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.001509/0.001509, allocations: 199.5 kB / 16.68 MB, free: 5.934 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2275/0.2275, allocations: 15.31 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 63.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2549, allocations: 53.61 MB / 478.3 MB, free: 25.48 MB / 366.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.03223/0.2872, allocations: 29.06 MB / 0.4955 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01939/0.3066, allocations: 17.8 MB / 0.5129 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.3081, allocations: 23.88 kB / 0.5129 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.3094, allocations: 488.1 kB / 0.5134 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003599/0.313, allocations: 1.307 MB / 0.5146 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006241/0.3192, allocations: 2.528 MB / 0.5171 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003191/0.3225, allocations: 2.284 MB / 0.5193 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.3241, allocations: 1.515 MB / 0.5208 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.3253, allocations: 1.028 MB / 0.5218 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.3267, allocations: 1.156 MB / 0.523 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003023/0.327, allocations: 224 kB / 0.5232 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004934/0.332, allocations: 1.806 MB / 0.5249 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005281/0.3325, allocations: 0.5063 MB / 0.5254 GB, free: 6.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.3336, allocations: 1.101 MB / 0.5265 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007259/0.3409, allocations: 4.198 MB / 0.5306 GB, free: 1.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3409, allocations: 0 / 0.5306 GB, free: 1.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3409, allocations: 0 / 0.5306 GB, free: 1.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.593e-05/0.341, allocations: 0 / 0.5306 GB, free: 1.508 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: 501 * Number of variables: 501 Notification: Performance of Generate backend data structure: time 0.004422/0.3454, allocations: 2.549 MB / 0.5331 GB, free: 14.9 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3454, allocations: 15.97 kB / 0.5331 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003049/0.3458, allocations: 274.9 kB / 0.5334 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/0.3473, allocations: 440.1 kB / 0.5338 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.3491, allocations: 1.123 MB / 0.5349 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.3493, allocations: 177.8 kB / 0.535 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002818/0.3495, allocations: 203.9 kB / 0.5352 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003336/0.3529, allocations: 2.128 MB / 0.5373 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.608e-05/0.3529, allocations: 4 kB / 0.5373 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001776/0.3531, allocations: 84 kB / 0.5374 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.074e-05/0.3532, allocations: 48 kB / 0.5375 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003688/0.3569, allocations: 2.233 MB / 0.5396 GB, free: 8.07 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.01038/0.3672, allocations: 7.356 MB / 0.5468 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/0.3701, allocations: 1.745 MB / 0.5485 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008922/0.371, allocations: 0.5729 MB / 0.5491 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009067/0.3801, allocations: 6.377 MB / 0.5553 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.3802, allocations: 43.5 kB / 0.5553 GB, free: 6.797 MB / 430.1 MB Notification: Performance of pre-optimization done (n=88): time 3.046e-06/0.3802, allocations: 0 / 0.5553 GB, free: 6.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=106): time 0.01802/0.3982, allocations: 4.907 MB / 0.5601 GB, free: 1.801 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.3983, allocations: 111.9 kB / 0.5602 GB, free: 1.668 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.3996, allocations: 0.9197 MB / 0.5611 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.924e-05/0.3997, allocations: 45.7 kB / 0.5612 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006985/0.4004, allocations: 0.9634 MB / 0.5621 GB, free: 15.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.4007, allocations: 404.6 kB / 0.5625 GB, free: 15.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004714/0.4012, allocations: 347.4 kB / 0.5628 GB, free: 14.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4013, allocations: 305.1 kB / 0.5631 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008183/0.4022, allocations: 455.8 kB / 0.5636 GB, free: 14.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.4036, allocations: 1.191 MB / 0.5647 GB, free: 12.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.4061, allocations: 1.798 MB / 0.5665 GB, free: 10.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.4061, allocations: 11.94 kB / 0.5665 GB, free: 10.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005102/0.4112, allocations: 2.069 MB / 0.5685 GB, free: 8.418 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.4112, allocations: 18.62 kB / 0.5685 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.294e-05/0.4113, allocations: 28 kB / 0.5686 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002397/0.4137, allocations: 382 kB / 0.5689 GB, free: 7.992 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.4154, allocations: 451.3 kB / 0.5694 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005571/0.421, allocations: 4.075 MB / 0.5733 GB, free: 3.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.4222, allocations: 87.91 kB / 0.5734 GB, free: 3.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.4224, allocations: 108 kB / 0.5735 GB, free: 2.984 MB / 446.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.0006699/0.4231, allocations: 381.1 kB / 0.5739 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.4234, allocations: 127.2 kB / 0.574 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004663/0.428, allocations: 1.606 MB / 0.5756 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.428, allocations: 12 kB / 0.5756 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4281, allocations: 4 kB / 0.5756 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.4281, allocations: 7.984 kB / 0.5756 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.4305, allocations: 1.496 MB / 0.5771 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.617e-06/0.4305, allocations: 4 kB / 0.5771 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.4317, allocations: 244 kB / 0.5773 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/0.434, allocations: 350.1 kB / 0.5776 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.4342, allocations: 47.97 kB / 0.5777 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005344/0.4395, allocations: 3.989 MB / 0.5816 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.4395, allocations: 11.88 kB / 0.5816 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005146/0.4447, allocations: 2.22 MB / 0.5838 GB, free: 8.023 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.4451, allocations: 200.2 kB / 0.5839 GB, free: 7.809 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.4452, allocations: 24 kB / 0.584 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/0.4459, allocations: 27.98 kB / 0.584 GB, free: 7.758 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.4461, allocations: 100.8 kB / 0.5841 GB, free: 7.656 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.576e-05/0.4462, allocations: 51.98 kB / 0.5841 GB, free: 7.605 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007818/0.447, allocations: 0.5776 MB / 0.5847 GB, free: 7.02 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.447, allocations: 0 / 0.5847 GB, free: 7.02 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002168/0.4492, allocations: 0.725 MB / 0.5854 GB, free: 6.293 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (O2_gas.logn,H2_gas.logn,anode.temperature,cathode.temperature,water.temperature,air.temperature,liquidWater.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * 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,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006713/0.4559, allocations: 3.382 MB / 0.5887 GB, free: 2.852 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002803/0.4587, allocations: 1.534 MB / 0.5902 GB, free: 1.293 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.4587, allocations: 0.875 kB / 0.5902 GB, free: 1.293 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.4601, allocations: 0.831 MB / 0.591 GB, free: 448 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.4615, allocations: 248.5 kB / 0.5913 GB, free: 200 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02149/0.483, allocations: 12.21 MB / 0.6032 GB, free: 3.027 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009893/0.484, allocations: 1.247 MB / 0.6044 GB, free: 1.746 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001136/0.4852, allocations: 338.5 kB / 0.6047 GB, free: 1.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/0.4862, allocations: 0.7491 MB / 0.6055 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4862, allocations: 0 / 0.6055 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2781/0.7644, allocations: 37.81 MB / 0.6424 GB, free: 102.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.76/21.52, allocations: 18.48 kB / 0.6424 GB, free: 102.3 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_WaterElectrolysis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_WaterElectrolysis.fmu > Chemical_Chemical.Examples.WaterElectrolysis.pipe 2>&1)