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.007315/0.007315, allocations: 102.3 kB / 15.73 MB, free: 5.902 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.002301/0.002302, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 4.121 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2919/0.2919, allocations: 15.3 MB / 305.8 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 67.89 kB / 425.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3293, allocations: 53.61 MB / 478.8 MB, free: 25.8 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.03774/0.3671, allocations: 26.52 MB / 0.4935 GB, free: 8.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02042/0.3876, allocations: 18.17 MB / 0.5112 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001741/0.3894, allocations: 11.94 kB / 0.5112 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.3909, allocations: 480.5 kB / 0.5117 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00345/0.3944, allocations: 0.8378 MB / 0.5125 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0092/0.4036, allocations: 2.795 MB / 0.5152 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002877/0.4065, allocations: 1.634 MB / 0.5168 GB, free: 116 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.4077, allocations: 0.922 MB / 0.5177 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008198/0.4086, allocations: 0.7011 MB / 0.5184 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009165/0.4095, allocations: 0.8055 MB / 0.5192 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001808/0.4097, allocations: 140 kB / 0.5193 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005372/0.4151, allocations: 1.755 MB / 0.5211 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004426/0.4155, allocations: 358.9 kB / 0.5214 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008638/0.4164, allocations: 0.7427 MB / 0.5221 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009743/0.4262, allocations: 3.472 MB / 0.5255 GB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4262, allocations: 0 / 0.5255 GB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4262, allocations: 4 kB / 0.5255 GB, free: 7.176 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.4262, allocations: 0 / 0.5255 GB, free: 7.176 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.003378/0.4296, allocations: 1.918 MB / 0.5274 GB, free: 5.203 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.4297, allocations: 12.03 kB / 0.5274 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.4312, allocations: 392.3 kB / 0.5278 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.4328, allocations: 0.973 MB / 0.5287 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.433, allocations: 154.1 kB / 0.5289 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.4332, allocations: 119.9 kB / 0.529 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002513/0.4357, allocations: 1.649 MB / 0.5306 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.4357, allocations: 3.938 kB / 0.5306 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.4359, allocations: 52 kB / 0.5307 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.645e-05/0.4359, allocations: 32 kB / 0.5307 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003074/0.439, allocations: 2.1 MB / 0.5327 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008254/0.4473, allocations: 5.401 MB / 0.538 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.4487, allocations: 0.725 MB / 0.5387 GB, free: 9.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005629/0.4493, allocations: 360.4 kB / 0.5391 GB, free: 8.891 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008012/0.4573, allocations: 5.018 MB / 0.544 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.4574, allocations: 46.48 kB / 0.544 GB, free: 3.238 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003758/0.4578, allocations: 70.97 kB / 0.5441 GB, free: 3.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 2.394e-06/0.4578, allocations: 0 / 0.5441 GB, free: 3.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.001507/0.4593, allocations: 0.75 MB / 0.5448 GB, free: 2.367 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.353e-05/0.4594, allocations: 114.7 kB / 0.5449 GB, free: 2.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/0.461, allocations: 1.198 MB / 0.5461 GB, free: 1.016 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.4611, allocations: 29.7 kB / 0.5461 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005396/0.4616, allocations: 0.776 MB / 0.5469 GB, free: 196 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.4617, allocations: 142.5 kB / 0.547 GB, free: 52 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003669/0.4621, allocations: 270.5 kB / 0.5473 GB, free: 15.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.4623, allocations: 357.9 kB / 0.5476 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.4628, allocations: 314.5 kB / 0.5479 GB, free: 15.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.4638, allocations: 1.054 MB / 0.5489 GB, free: 13.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/0.4656, allocations: 1.395 MB / 0.5503 GB, free: 11.94 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.4656, allocations: 8 kB / 0.5503 GB, free: 11.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002566/0.4682, allocations: 1.443 MB / 0.5517 GB, free: 10.47 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.4683, allocations: 16 kB / 0.5517 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-05/0.4683, allocations: 28.69 kB / 0.5518 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007367/0.469, allocations: 157.5 kB / 0.5519 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.4702, allocations: 371.4 kB / 0.5523 GB, free: 9.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/0.4735, allocations: 4.065 MB / 0.5562 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.4745, allocations: 75.78 kB / 0.5563 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/0.4747, allocations: 95.98 kB / 0.5564 GB, free: 5.332 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.0005676/0.4752, allocations: 309.1 kB / 0.5567 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.4755, allocations: 106.7 kB / 0.5568 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.4771, allocations: 0.8457 MB / 0.5576 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4771, allocations: 4 kB / 0.5576 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.4771, allocations: 0 / 0.5576 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.4771, allocations: 4 kB / 0.5576 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.4793, allocations: 1.259 MB / 0.5589 GB, free: 2.668 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.4793, allocations: 4 kB / 0.5589 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.4796, allocations: 63.89 kB / 0.5589 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008958/0.4805, allocations: 183.2 kB / 0.5591 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.4805, allocations: 12 kB / 0.5591 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002822/0.4834, allocations: 3.939 MB / 0.563 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4834, allocations: 4.031 kB / 0.563 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.4846, allocations: 0.8563 MB / 0.5638 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000296/0.4849, allocations: 163.8 kB / 0.5639 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.485, allocations: 8 kB / 0.564 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.4854, allocations: 15.98 kB / 0.564 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/0.4855, allocations: 35.84 kB / 0.564 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.4855, allocations: 19.94 kB / 0.564 GB, free: 12.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.4866, allocations: 0.881 MB / 0.5649 GB, free: 12.06 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4866, allocations: 4.062 kB / 0.5649 GB, free: 12.06 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002071/0.4887, allocations: 0.6278 MB / 0.5655 GB, free: 11.43 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.001413/0.4901, allocations: 0.7208 MB / 0.5662 GB, free: 10.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.4919, allocations: 0.7982 MB / 0.567 GB, free: 9.902 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4919, allocations: 4.312 kB / 0.567 GB, free: 9.898 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005151/0.4924, allocations: 397 kB / 0.5674 GB, free: 9.484 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.4935, allocations: 174.6 kB / 0.5675 GB, free: 9.324 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.4966, allocations: 1.805 MB / 0.5693 GB, free: 7.465 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007022/0.4974, allocations: 1.059 MB / 0.5703 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008223/0.4982, allocations: 287 kB / 0.5706 GB, free: 6.102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.4985, allocations: 139.3 kB / 0.5707 GB, free: 5.965 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4985, allocations: 0 / 0.5707 GB, free: 5.965 MB / 446.1 MB Notification: Performance of Templates: time 0.03315/0.5316, allocations: 19.2 MB / 0.5895 GB, free: 2.801 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)