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.0007632/0.0007633, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008723/0.0008723, allocations: 179.2 kB / 16.92 MB, free: 6.652 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.401/1.401, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2136/0.2136, allocations: 15.28 MB / 307.4 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.00037, allocations: 12 kB / 372.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.291, allocations: 54.63 MB / 427.4 MB, free: 40.29 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02735/0.3184, allocations: 27.59 MB / 455 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.3376, allocations: 21.31 MB / 476.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/0.3391, allocations: 36.62 kB / 476.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.3404, allocations: 493.5 kB / 476.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.3431, allocations: 0.9224 MB / 477.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008632/0.3517, allocations: 2.88 MB / 480.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002242/0.354, allocations: 1.76 MB / 482.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000976/0.355, allocations: 0.7702 MB / 483.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008338/0.3558, allocations: 0.7285 MB / 483.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009031/0.3567, allocations: 0.825 MB / 484.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.3569, allocations: 80 kB / 484.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006187/0.3631, allocations: 2 MB / 486.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.3634, allocations: 311.3 kB / 487.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007778/0.3642, allocations: 0.7522 MB / 487.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00411/0.3683, allocations: 2.867 MB / 490.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3684, allocations: 0 / 490.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3684, allocations: 4 kB / 490.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.692e-05/0.3684, allocations: 3.938 kB / 490.7 MB, free: 4.113 MB / 350.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.003262/0.3717, allocations: 1.761 MB / 492.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3718, allocations: 13.58 kB / 492.5 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/0.3736, allocations: 437.5 kB / 492.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/0.3753, allocations: 0.9873 MB / 493.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.3754, allocations: 155.5 kB / 494 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003058/0.3757, allocations: 127.9 kB / 494.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002691/0.3784, allocations: 1.756 MB / 495.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/0.3785, allocations: 4 kB / 495.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.3786, allocations: 51.94 kB / 496 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.3786, allocations: 32 kB / 496 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0034/0.3821, allocations: 2.316 MB / 498.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007796/0.3899, allocations: 5.543 MB / 0.4921 GB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.3912, allocations: 0.7318 MB / 0.4928 GB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006072/0.3918, allocations: 362.6 kB / 0.4931 GB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007758/0.3996, allocations: 5.594 MB / 0.4986 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3996, allocations: 42.42 kB / 0.4986 GB, free: 1.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.944e-06/0.3996, allocations: 0 / 0.4986 GB, free: 1.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.00152/0.4012, allocations: 0.7929 MB / 0.4994 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.4012, allocations: 114.8 kB / 0.4995 GB, free: 0.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.4029, allocations: 1.283 MB / 0.5008 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.4029, allocations: 37.7 kB / 0.5008 GB, free: 15.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005821/0.4035, allocations: 0.8303 MB / 0.5016 GB, free: 14.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.4037, allocations: 154.2 kB / 0.5018 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.4038, allocations: 105.7 kB / 0.5019 GB, free: 14.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.4039, allocations: 357.9 kB / 0.5022 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005324/0.4045, allocations: 335.9 kB / 0.5025 GB, free: 13.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.4055, allocations: 1.156 MB / 0.5036 GB, free: 11.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.4072, allocations: 1.529 MB / 0.5051 GB, free: 10.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.4072, allocations: 12 kB / 0.5052 GB, free: 10.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002501/0.4097, allocations: 1.547 MB / 0.5067 GB, free: 8.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.4098, allocations: 16 kB / 0.5067 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/0.4098, allocations: 31.94 kB / 0.5067 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006394/0.4104, allocations: 157.4 kB / 0.5069 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.4116, allocations: 399.8 kB / 0.5072 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.4144, allocations: 3.876 MB / 0.511 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.4154, allocations: 190.2 kB / 0.5112 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.4156, allocations: 99.98 kB / 0.5113 GB, free: 3.379 MB / 382.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.0005444/0.4161, allocations: 336.9 kB / 0.5116 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.4163, allocations: 114.5 kB / 0.5117 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.4183, allocations: 0.9467 MB / 0.5127 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.4184, allocations: 7.938 kB / 0.5127 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.4184, allocations: 0 / 0.5127 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4184, allocations: 4 kB / 0.5127 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.4206, allocations: 1.363 MB / 0.514 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.4206, allocations: 4 kB / 0.514 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.4209, allocations: 63.91 kB / 0.5141 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007878/0.4217, allocations: 183.3 kB / 0.5142 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.4217, allocations: 16 kB / 0.5143 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/0.4242, allocations: 3.75 MB / 0.5179 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.4243, allocations: 7.938 kB / 0.5179 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.4255, allocations: 0.9021 MB / 0.5188 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000338/0.4258, allocations: 227.4 kB / 0.519 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.426, allocations: 12 kB / 0.519 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.4264, allocations: 11.91 kB / 0.519 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.4265, allocations: 47.89 kB / 0.5191 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.4265, allocations: 20 kB / 0.5191 GB, free: 10.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001212/0.4278, allocations: 0.9547 MB / 0.52 GB, free: 9.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4278, allocations: 0 / 0.52 GB, free: 9.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002085/0.4299, allocations: 0.6863 MB / 0.5207 GB, free: 9.164 MB / 398.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.00169/0.4316, allocations: 0.8302 MB / 0.5215 GB, free: 8.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.4333, allocations: 0.8386 MB / 0.5223 GB, free: 7.492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4333, allocations: 4.062 kB / 0.5223 GB, free: 7.488 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005121/0.4338, allocations: 389.1 kB / 0.5227 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001577/0.4354, allocations: 185.6 kB / 0.5229 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003671/0.4391, allocations: 2.572 MB / 0.5254 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008053/0.4399, allocations: 1.088 MB / 0.5265 GB, free: 3.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004601/0.4404, allocations: 223.3 kB / 0.5267 GB, free: 2.926 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4404, allocations: 0 / 0.5267 GB, free: 2.926 MB / 398.1 MB Notification: Performance of Templates: time 0.04813/0.4885, allocations: 40.16 MB / 0.5659 GB, free: 10.78 MB / 446.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)