Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006932/0.006932, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001124/0.001124, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2462/0.2462, allocations: 15.32 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 67.89 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3143, allocations: 53.6 MB / 478.8 MB, free: 25.86 MB / 366.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.StandardElectrochemicalCell2): time 0.0356/0.3499, allocations: 26.56 MB / 0.4935 GB, free: 8.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01867/0.3686, allocations: 18.17 MB / 0.5113 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001714/0.3704, allocations: 15.94 kB / 0.5113 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.3718, allocations: 468.6 kB / 0.5117 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002859/0.3747, allocations: 0.8534 MB / 0.5126 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007763/0.3825, allocations: 2.815 MB / 0.5153 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.3851, allocations: 1.634 MB / 0.5169 GB, free: 20 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.3863, allocations: 0.9219 MB / 0.5178 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008168/0.3871, allocations: 0.705 MB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009026/0.3881, allocations: 0.8055 MB / 0.5193 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001831/0.3883, allocations: 140 kB / 0.5194 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005828/0.3941, allocations: 1.763 MB / 0.5211 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004401/0.3946, allocations: 354.9 kB / 0.5215 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008583/0.3954, allocations: 0.7465 MB / 0.5222 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008625/0.4041, allocations: 3.468 MB / 0.5256 GB, free: 7.078 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4041, allocations: 0 / 0.5256 GB, free: 7.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4041, allocations: 0 / 0.5256 GB, free: 7.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.4041, allocations: 0 / 0.5256 GB, free: 7.078 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003401/0.4075, allocations: 1.922 MB / 0.5275 GB, free: 5.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.4076, allocations: 12.02 kB / 0.5275 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00157/0.4092, allocations: 384.3 kB / 0.5278 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/0.4108, allocations: 0.9808 MB / 0.5288 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.411, allocations: 158 kB / 0.529 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.4112, allocations: 119.9 kB / 0.5291 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/0.4136, allocations: 1.645 MB / 0.5307 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.4136, allocations: 7.922 kB / 0.5307 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.4138, allocations: 56 kB / 0.5307 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.4138, allocations: 28 kB / 0.5308 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002981/0.4168, allocations: 2.096 MB / 0.5328 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007481/0.4243, allocations: 5.405 MB / 0.5381 GB, free: 9.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.4256, allocations: 0.7172 MB / 0.5388 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005689/0.4262, allocations: 360.4 kB / 0.5391 GB, free: 8.793 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007204/0.4334, allocations: 5.022 MB / 0.544 GB, free: 3.191 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.4335, allocations: 50.47 kB / 0.5441 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003401/0.4338, allocations: 74.97 kB / 0.5442 GB, free: 3.059 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 4.989e-06/0.4338, allocations: 0 / 0.5442 GB, free: 3.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.001453/0.4353, allocations: 0.746 MB / 0.5449 GB, free: 2.262 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.4354, allocations: 114.7 kB / 0.545 GB, free: 2.125 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.4368, allocations: 1.195 MB / 0.5462 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.4369, allocations: 37.7 kB / 0.5462 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005268/0.4374, allocations: 0.7722 MB / 0.5469 GB, free: 88 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.4375, allocations: 138.4 kB / 0.5471 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003511/0.4379, allocations: 266.5 kB / 0.5473 GB, free: 15.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.438, allocations: 357.9 kB / 0.5477 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.4385, allocations: 318.5 kB / 0.548 GB, free: 15.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009795/0.4395, allocations: 1.057 MB / 0.549 GB, free: 13.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.441, allocations: 1.399 MB / 0.5504 GB, free: 11.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.4411, allocations: 8 kB / 0.5504 GB, free: 11.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002185/0.4433, allocations: 1.432 MB / 0.5518 GB, free: 10.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.4433, allocations: 20.06 kB / 0.5518 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.4433, allocations: 31.94 kB / 0.5518 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/0.4439, allocations: 149.6 kB / 0.552 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.445, allocations: 375.4 kB / 0.5523 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00296/0.448, allocations: 4.073 MB / 0.5563 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008671/0.4489, allocations: 67.72 kB / 0.5564 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.449, allocations: 96.08 kB / 0.5565 GB, free: 5.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.000481/0.4495, allocations: 313.1 kB / 0.5568 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.4497, allocations: 98.69 kB / 0.5569 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.4513, allocations: 0.8554 MB / 0.5577 GB, free: 3.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4513, allocations: 8 kB / 0.5577 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.4513, allocations: 0 / 0.5577 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4513, allocations: 0 / 0.5577 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.4533, allocations: 1.268 MB / 0.5589 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.4534, allocations: 0 / 0.5589 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.4536, allocations: 59.89 kB / 0.559 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007212/0.4543, allocations: 179.2 kB / 0.5592 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.42e-05/0.4544, allocations: 16 kB / 0.5592 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00269/0.4571, allocations: 3.936 MB / 0.563 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.4571, allocations: 4 kB / 0.563 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.4583, allocations: 0.8531 MB / 0.5639 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.4585, allocations: 163.8 kB / 0.564 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.4586, allocations: 15.94 kB / 0.564 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003635/0.459, allocations: 15.92 kB / 0.5641 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.05e-05/0.4591, allocations: 39.91 kB / 0.5641 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.4591, allocations: 20 kB / 0.5641 GB, free: 12.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001051/0.4602, allocations: 0.881 MB / 0.565 GB, free: 11.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4602, allocations: 0 / 0.565 GB, free: 11.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001935/0.4621, allocations: 0.6201 MB / 0.5656 GB, free: 11.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (27): * Single equations (assignments): 23 * 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.001215/0.4634, allocations: 0.7278 MB / 0.5663 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.465, allocations: 0.7941 MB / 0.5671 GB, free: 9.797 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.465, allocations: 0 / 0.5671 GB, free: 9.797 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005156/0.4656, allocations: 397 kB / 0.5674 GB, free: 9.383 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000994/0.4666, allocations: 176 kB / 0.5676 GB, free: 9.219 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003117/0.4697, allocations: 1.81 MB / 0.5694 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007773/0.4705, allocations: 1.059 MB / 0.5704 GB, free: 6.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007987/0.4713, allocations: 276 kB / 0.5707 GB, free: 6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.4716, allocations: 139.3 kB / 0.5708 GB, free: 5.863 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4716, allocations: 0 / 0.5708 GB, free: 5.863 MB / 446.1 MB Notification: Performance of Templates: time 0.03123/0.5028, allocations: 18.97 MB / 0.5893 GB, free: 2.934 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)