Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 108.4 kB / 16.41 MB, free: 6.492 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.001264/0.001265, allocations: 185.5 kB / 17.34 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07845/0.07845, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 425.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09822/0.0997, allocations: 53.61 MB / 479.5 MB, free: 5.898 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.CheckSubstancesData.StandardElectrochemicalCell): time 0.03621/0.136, allocations: 27.11 MB / 0.4947 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2738/0.4098, allocations: 21.58 MB / 0.5158 GB, free: 18.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.4112, allocations: 24 kB / 0.5158 GB, free: 18.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.4129, allocations: 0.539 MB / 0.5163 GB, free: 17.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003673/0.4165, allocations: 0.994 MB / 0.5173 GB, free: 17.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01113/0.4277, allocations: 3.276 MB / 0.5205 GB, free: 16.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003577/0.4313, allocations: 1.799 MB / 0.5223 GB, free: 16.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00188/0.4332, allocations: 0.9474 MB / 0.5232 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.4345, allocations: 0.7867 MB / 0.5239 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.436, allocations: 0.8862 MB / 0.5248 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003236/0.4363, allocations: 148.2 kB / 0.525 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009216/0.4455, allocations: 2.056 MB / 0.527 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008259/0.4464, allocations: 385.9 kB / 0.5273 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001255/0.4477, allocations: 0.805 MB / 0.5281 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.46, allocations: 3.952 MB / 0.532 GB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.46, allocations: 0 / 0.532 GB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.46, allocations: 0 / 0.532 GB, free: 12.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.33e-05/0.4601, allocations: 0 / 0.532 GB, free: 12.42 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.004088/0.4641, allocations: 2.086 MB / 0.534 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4642, allocations: 9.625 kB / 0.534 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001826/0.466, allocations: 435.7 kB / 0.5344 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001774/0.4678, allocations: 1.045 MB / 0.5355 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.468, allocations: 153.4 kB / 0.5356 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.4682, allocations: 130.2 kB / 0.5357 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/0.4709, allocations: 1.758 MB / 0.5374 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.4709, allocations: 6.469 kB / 0.5375 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.4711, allocations: 50.56 kB / 0.5375 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.4711, allocations: 32.78 kB / 0.5375 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002869/0.474, allocations: 2.314 MB / 0.5398 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006737/0.4807, allocations: 5.555 MB / 0.5452 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.4818, allocations: 0.7351 MB / 0.5459 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/0.4823, allocations: 360.4 kB / 0.5463 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007357/0.4897, allocations: 5.697 MB / 0.5518 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4897, allocations: 42.5 kB / 0.5519 GB, free: 11.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.424e-06/0.4898, allocations: 0 / 0.5519 GB, free: 11.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.001498/0.4913, allocations: 0.79 MB / 0.5527 GB, free: 10.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.4913, allocations: 110.8 kB / 0.5528 GB, free: 10.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.4928, allocations: 1.297 MB / 0.554 GB, free: 9.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.168e-05/0.4929, allocations: 33.7 kB / 0.5541 GB, free: 9.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.4934, allocations: 0.8381 MB / 0.5549 GB, free: 8.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.4935, allocations: 148.9 kB / 0.555 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003416/0.4939, allocations: 295.1 kB / 0.5553 GB, free: 7.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.494, allocations: 349.9 kB / 0.5556 GB, free: 7.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/0.4945, allocations: 338.5 kB / 0.556 GB, free: 7.172 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009822/0.4955, allocations: 1.152 MB / 0.5571 GB, free: 5.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.497, allocations: 1.533 MB / 0.5586 GB, free: 3.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.497, allocations: 8 kB / 0.5586 GB, free: 3.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002228/0.4993, allocations: 1.54 MB / 0.5601 GB, free: 2.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.4993, allocations: 22.69 kB / 0.5601 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.084e-05/0.4993, allocations: 31.98 kB / 0.5601 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006272/0.5, allocations: 161.2 kB / 0.5603 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.5011, allocations: 400.7 kB / 0.5607 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002851/0.5039, allocations: 4.074 MB / 0.5647 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.5051, allocations: 184.7 kB / 0.5648 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.5052, allocations: 105.5 kB / 0.5649 GB, free: 12.94 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005452/0.5058, allocations: 331.7 kB / 0.5652 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.506, allocations: 110.5 kB / 0.5654 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.5077, allocations: 0.9474 MB / 0.5663 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.5077, allocations: 7.938 kB / 0.5663 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.5077, allocations: 0 / 0.5663 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.5077, allocations: 2.766 kB / 0.5663 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.5098, allocations: 1.373 MB / 0.5676 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.5098, allocations: 4 kB / 0.5676 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.5101, allocations: 55.91 kB / 0.5677 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007423/0.5108, allocations: 178 kB / 0.5679 GB, free: 9.848 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.5109, allocations: 15.94 kB / 0.5679 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002676/0.5136, allocations: 3.949 MB / 0.5717 GB, free: 5.555 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5136, allocations: 0 / 0.5717 GB, free: 5.555 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.5148, allocations: 0.9086 MB / 0.5726 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/0.5151, allocations: 187.6 kB / 0.5728 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.5152, allocations: 18.5 kB / 0.5728 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.5156, allocations: 12 kB / 0.5728 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.5157, allocations: 39.84 kB / 0.5729 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.5157, allocations: 22.67 kB / 0.5729 GB, free: 4.309 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.5168, allocations: 0.9547 MB / 0.5738 GB, free: 3.352 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5168, allocations: 0 / 0.5738 GB, free: 3.352 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002344/0.5192, allocations: 0.6903 MB / 0.5745 GB, free: 2.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001585/0.5208, allocations: 0.8354 MB / 0.5753 GB, free: 1.871 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.5224, allocations: 0.8418 MB / 0.5761 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5225, allocations: 0 / 0.5761 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000519/0.523, allocations: 415.5 kB / 0.5765 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.5241, allocations: 191.2 kB / 0.5767 GB, free: 472 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.527, allocations: 1.975 MB / 0.5786 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.5276, allocations: 1.094 MB / 0.5797 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003925/0.528, allocations: 219.6 kB / 0.5799 GB, free: 13.18 MB / 430.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5281, allocations: 0 / 0.5799 GB, free: 13.18 MB / 430.1 MB Notification: Performance of Templates: time 0.04342/0.5715, allocations: 40.31 MB / 0.6193 GB, free: 5.336 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)