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.007071/0.007071, allocations: 99.3 kB / 15.73 MB, free: 6.043 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.001327/0.001327, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3369/0.3369, allocations: 15.32 MB / 305.8 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 67.89 kB / 425.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2982, allocations: 53.6 MB / 478.8 MB, free: 26.1 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.StandardElectrochemicalCell): time 0.04101/0.3392, allocations: 27.13 MB / 0.4941 GB, free: 7.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02359/0.3628, allocations: 21.58 MB / 0.5152 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001972/0.3648, allocations: 19.88 kB / 0.5152 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.3665, allocations: 0.5313 MB / 0.5157 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003741/0.3703, allocations: 1.001 MB / 0.5167 GB, free: 324 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009865/0.3802, allocations: 3.272 MB / 0.5199 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003319/0.3835, allocations: 1.801 MB / 0.5216 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.3847, allocations: 0.9535 MB / 0.5226 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009399/0.3856, allocations: 0.7907 MB / 0.5233 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.3866, allocations: 0.8795 MB / 0.5242 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001884/0.3868, allocations: 148 kB / 0.5243 GB, free: 8.414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006744/0.3936, allocations: 2.059 MB / 0.5263 GB, free: 6.352 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004392/0.394, allocations: 378.8 kB / 0.5267 GB, free: 5.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000937/0.395, allocations: 0.8126 MB / 0.5275 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009986/0.405, allocations: 3.943 MB / 0.5313 GB, free: 1.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.4051, allocations: 3.984 kB / 0.5313 GB, free: 1.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4051, allocations: 0 / 0.5313 GB, free: 1.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.4051, allocations: 0 / 0.5313 GB, free: 1.203 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003294/0.4084, allocations: 2.089 MB / 0.5334 GB, free: 15.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.4084, allocations: 8.031 kB / 0.5334 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/0.4101, allocations: 440 kB / 0.5338 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.4118, allocations: 1.036 MB / 0.5348 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.4119, allocations: 154.3 kB / 0.535 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001986/0.4121, allocations: 131.9 kB / 0.5351 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.4147, allocations: 1.752 MB / 0.5368 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.4147, allocations: 4 kB / 0.5368 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.4149, allocations: 52 kB / 0.5369 GB, free: 11.37 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.4149, allocations: 32 kB / 0.5369 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00323/0.4181, allocations: 2.311 MB / 0.5392 GB, free: 9.023 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008003/0.4261, allocations: 5.562 MB / 0.5446 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.4275, allocations: 0.748 MB / 0.5453 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006225/0.4281, allocations: 360.4 kB / 0.5457 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008211/0.4364, allocations: 5.685 MB / 0.5512 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.4364, allocations: 46.5 kB / 0.5513 GB, free: 11.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 3.988e-06/0.4364, allocations: 0 / 0.5513 GB, free: 11.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001612/0.4381, allocations: 0.7925 MB / 0.552 GB, free: 10.86 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.4381, allocations: 122.7 kB / 0.5521 GB, free: 10.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.4398, allocations: 1.287 MB / 0.5534 GB, free: 9.418 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/0.4398, allocations: 29.7 kB / 0.5534 GB, free: 9.383 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006567/0.4405, allocations: 0.8343 MB / 0.5542 GB, free: 8.535 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.4407, allocations: 150.1 kB / 0.5544 GB, free: 8.387 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/0.441, allocations: 291.2 kB / 0.5547 GB, free: 8.098 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.4412, allocations: 353.9 kB / 0.555 GB, free: 7.746 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005063/0.4417, allocations: 335.8 kB / 0.5553 GB, free: 7.418 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.4428, allocations: 1.148 MB / 0.5564 GB, free: 5.859 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001597/0.4444, allocations: 1.533 MB / 0.5579 GB, free: 3.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.4444, allocations: 8 kB / 0.5579 GB, free: 3.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002451/0.4469, allocations: 1.547 MB / 0.5595 GB, free: 2.352 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.4469, allocations: 20.03 kB / 0.5595 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.991e-05/0.447, allocations: 35.94 kB / 0.5595 GB, free: 2.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000654/0.4476, allocations: 153.4 kB / 0.5597 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.4488, allocations: 403.3 kB / 0.56 GB, free: 1.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002947/0.4517, allocations: 4.07 MB / 0.564 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.4529, allocations: 185.9 kB / 0.5642 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.453, allocations: 108.1 kB / 0.5643 GB, free: 13.05 MB / 446.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.0005133/0.4535, allocations: 333.1 kB / 0.5646 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.4537, allocations: 110.6 kB / 0.5647 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.4555, allocations: 0.9411 MB / 0.5656 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.4555, allocations: 4 kB / 0.5656 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.4555, allocations: 0 / 0.5656 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.4555, allocations: 4 kB / 0.5657 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.4577, allocations: 1.371 MB / 0.567 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.4578, allocations: 4 kB / 0.567 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.458, allocations: 59.91 kB / 0.5671 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007154/0.4587, allocations: 175.6 kB / 0.5672 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.4588, allocations: 12 kB / 0.5672 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.4617, allocations: 3.951 MB / 0.5711 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.4617, allocations: 4 kB / 0.5711 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.463, allocations: 0.9127 MB / 0.572 GB, free: 4.598 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003073/0.4633, allocations: 179.6 kB / 0.5722 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.4634, allocations: 15.91 kB / 0.5722 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.4638, allocations: 11.94 kB / 0.5722 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.309e-05/0.4639, allocations: 47.89 kB / 0.5722 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.4639, allocations: 16 kB / 0.5722 GB, free: 4.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.4651, allocations: 0.9586 MB / 0.5732 GB, free: 3.352 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4651, allocations: 0 / 0.5732 GB, free: 3.352 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002258/0.4674, allocations: 0.6941 MB / 0.5739 GB, free: 2.656 MB / 446.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.001558/0.469, allocations: 0.8378 MB / 0.5747 GB, free: 1.809 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.4707, allocations: 0.8456 MB / 0.5755 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4707, allocations: 0 / 0.5755 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005157/0.4712, allocations: 402.1 kB / 0.5759 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.4723, allocations: 195.9 kB / 0.5761 GB, free: 372 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.4753, allocations: 1.941 MB / 0.578 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000678/0.476, allocations: 1.095 MB / 0.579 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008389/0.4769, allocations: 304 kB / 0.5793 GB, free: 12.94 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002634/0.4771, allocations: 171.3 kB / 0.5795 GB, free: 12.77 MB / 462.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4772, allocations: 0 / 0.5795 GB, free: 12.77 MB / 462.1 MB Notification: Performance of Templates: time 0.03385/0.511, allocations: 21.61 MB / 0.6006 GB, free: 7.195 MB / 478.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)