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.005599/0.005599, allocations: 96.75 kB / 15.73 MB, free: 6.027 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.001103/0.001103, allocations: 194.5 kB / 16.68 MB, free: 5.957 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2892/0.2892, allocations: 15.33 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 63.91 kB / 425.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3048, allocations: 53.6 MB / 478.8 MB, free: 26.12 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.03652/0.3414, allocations: 26.64 MB / 0.4936 GB, free: 8.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01773/0.3591, allocations: 18.16 MB / 0.5113 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.3607, allocations: 15.94 kB / 0.5114 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.3624, allocations: 476.5 kB / 0.5118 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003296/0.3657, allocations: 0.8301 MB / 0.5126 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008409/0.3742, allocations: 2.795 MB / 0.5153 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.3772, allocations: 1.641 MB / 0.517 GB, free: 4 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.3789, allocations: 0.9104 MB / 0.5178 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.3803, allocations: 0.7127 MB / 0.5185 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.3821, allocations: 0.8055 MB / 0.5193 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005162/0.3826, allocations: 143.9 kB / 0.5195 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008406/0.391, allocations: 1.755 MB / 0.5212 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008035/0.3919, allocations: 350.9 kB / 0.5215 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002052/0.394, allocations: 0.7466 MB / 0.5222 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.4058, allocations: 3.478 MB / 0.5256 GB, free: 7.062 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4059, allocations: 3.938 kB / 0.5256 GB, free: 7.059 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4059, allocations: 0 / 0.5256 GB, free: 7.059 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.252e-05/0.406, allocations: 0 / 0.5256 GB, free: 7.059 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.004664/0.4106, allocations: 1.98 MB / 0.5276 GB, free: 5.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.4107, allocations: 8.031 kB / 0.5276 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/0.4124, allocations: 393.1 kB / 0.528 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/0.4142, allocations: 0.9892 MB / 0.5289 GB, free: 3.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.4144, allocations: 158 kB / 0.5291 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.4146, allocations: 116 kB / 0.5292 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/0.4175, allocations: 1.645 MB / 0.5308 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.666e-05/0.4176, allocations: 3.938 kB / 0.5308 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.4177, allocations: 48 kB / 0.5308 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.187e-05/0.4177, allocations: 28 kB / 0.5309 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003508/0.4213, allocations: 2.1 MB / 0.5329 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.4322, allocations: 5.426 MB / 0.5382 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.4337, allocations: 0.7211 MB / 0.5389 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006195/0.4344, allocations: 360.4 kB / 0.5393 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007546/0.442, allocations: 5.026 MB / 0.5442 GB, free: 3.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.442, allocations: 42.48 kB / 0.5442 GB, free: 3.031 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003905/0.4424, allocations: 87.2 kB / 0.5443 GB, free: 2.945 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 4.208e-06/0.4424, allocations: 0 / 0.5443 GB, free: 2.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.00165/0.4441, allocations: 0.7505 MB / 0.545 GB, free: 2.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.4442, allocations: 111.1 kB / 0.5451 GB, free: 2.012 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.4457, allocations: 1.199 MB / 0.5463 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.4457, allocations: 41.64 kB / 0.5463 GB, free: 0.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005189/0.4462, allocations: 0.7869 MB / 0.5471 GB, free: 15.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.4464, allocations: 146.9 kB / 0.5473 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.4467, allocations: 270.7 kB / 0.5475 GB, free: 15.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4469, allocations: 353.9 kB / 0.5478 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.4474, allocations: 322.5 kB / 0.5482 GB, free: 14.87 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.4484, allocations: 1.05 MB / 0.5492 GB, free: 13.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.4502, allocations: 1.395 MB / 0.5505 GB, free: 11.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-05/0.4502, allocations: 4 kB / 0.5505 GB, free: 11.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002573/0.4528, allocations: 1.452 MB / 0.552 GB, free: 10.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.4529, allocations: 19.94 kB / 0.552 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.264e-05/0.4529, allocations: 31.94 kB / 0.552 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00073/0.4536, allocations: 149.6 kB / 0.5522 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.4548, allocations: 375.7 kB / 0.5525 GB, free: 9.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/0.4588, allocations: 4.069 MB / 0.5565 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.4602, allocations: 72.05 kB / 0.5566 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002362/0.4604, allocations: 91.98 kB / 0.5566 GB, free: 5.082 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.0008891/0.4613, allocations: 317.1 kB / 0.5569 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004049/0.4618, allocations: 103.3 kB / 0.557 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/0.4639, allocations: 0.8582 MB / 0.5579 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.4639, allocations: 0 / 0.5579 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.4639, allocations: 4 kB / 0.5579 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.4639, allocations: 0 / 0.5579 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002872/0.4668, allocations: 1.263 MB / 0.5591 GB, free: 2.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.4668, allocations: 4 kB / 0.5591 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.4671, allocations: 59.95 kB / 0.5592 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008232/0.4679, allocations: 175.2 kB / 0.5593 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.468, allocations: 19.98 kB / 0.5594 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003904/0.4719, allocations: 3.94 MB / 0.5632 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.4719, allocations: 7.938 kB / 0.5632 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.4736, allocations: 0.8615 MB / 0.5641 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003716/0.474, allocations: 172.5 kB / 0.5642 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.4742, allocations: 15.94 kB / 0.5642 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004546/0.4747, allocations: 8 kB / 0.5643 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-05/0.4748, allocations: 39.91 kB / 0.5643 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.66e-05/0.4748, allocations: 19.98 kB / 0.5643 GB, free: 12.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001405/0.4762, allocations: 0.8887 MB / 0.5652 GB, free: 11.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4762, allocations: 0 / 0.5652 GB, free: 11.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002684/0.4789, allocations: 0.6228 MB / 0.5658 GB, free: 11.14 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.001923/0.4809, allocations: 0.7351 MB / 0.5665 GB, free: 10.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.4827, allocations: 0.7965 MB / 0.5673 GB, free: 9.605 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4827, allocations: 0 / 0.5673 GB, free: 9.605 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005626/0.4833, allocations: 390.6 kB / 0.5677 GB, free: 9.199 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.4845, allocations: 177 kB / 0.5678 GB, free: 9.031 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.488, allocations: 1.841 MB / 0.5696 GB, free: 7.137 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.4891, allocations: 1.067 MB / 0.5707 GB, free: 6.043 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009078/0.49, allocations: 279.1 kB / 0.5709 GB, free: 5.773 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.4903, allocations: 143.3 kB / 0.5711 GB, free: 5.633 MB / 446.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4904, allocations: 4 kB / 0.5711 GB, free: 5.629 MB / 446.1 MB Notification: Performance of Templates: time 0.03165/0.522, allocations: 18.96 MB / 0.5896 GB, free: 2.703 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)