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.001138/0.001138, allocations: 112.4 kB / 16.42 MB, free: 6.496 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.001137/0.001137, allocations: 193.6 kB / 17.35 MB, free: 5.758 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0807/0.0807, allocations: 15.31 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.89 kB / 425.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.08648, allocations: 53.62 MB / 479.5 MB, free: 5.82 MB / 350.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.03657/0.1231, allocations: 27.19 MB / 0.4948 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2099/0.333, allocations: 21.57 MB / 0.5159 GB, free: 18.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.3342, allocations: 20.19 kB / 0.5159 GB, free: 18.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001683/0.3359, allocations: 0.5342 MB / 0.5164 GB, free: 18.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00301/0.3389, allocations: 1.002 MB / 0.5174 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008468/0.3474, allocations: 3.306 MB / 0.5206 GB, free: 17.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002362/0.3498, allocations: 1.806 MB / 0.5224 GB, free: 16.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.3512, allocations: 0.9459 MB / 0.5233 GB, free: 16.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.3523, allocations: 0.7898 MB / 0.5241 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.3539, allocations: 0.8825 MB / 0.5249 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005027/0.3544, allocations: 148.3 kB / 0.5251 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007023/0.3614, allocations: 2.06 MB / 0.5271 GB, free: 14.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005376/0.362, allocations: 385.7 kB / 0.5274 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001492/0.3635, allocations: 0.8007 MB / 0.5282 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008044/0.3716, allocations: 3.949 MB / 0.5321 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3716, allocations: 0 / 0.5321 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3716, allocations: 2.906 kB / 0.5321 GB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.797e-05/0.3717, allocations: 0 / 0.5321 GB, free: 12.59 MB / 382.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.00403/0.3757, allocations: 2.09 MB / 0.5341 GB, free: 11.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3757, allocations: 8.375 kB / 0.5341 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/0.3776, allocations: 438.8 kB / 0.5346 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.3794, allocations: 1.04 MB / 0.5356 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.3795, allocations: 156.8 kB / 0.5357 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.3798, allocations: 130.7 kB / 0.5358 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/0.3824, allocations: 1.742 MB / 0.5375 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.3824, allocations: 6.625 kB / 0.5376 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.3826, allocations: 52.97 kB / 0.5376 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.3826, allocations: 31.19 kB / 0.5376 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002902/0.3855, allocations: 2.322 MB / 0.5399 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006777/0.3923, allocations: 5.552 MB / 0.5453 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.3934, allocations: 0.7286 MB / 0.546 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005055/0.394, allocations: 360.3 kB / 0.5464 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008887/0.4029, allocations: 5.72 MB / 0.552 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.4029, allocations: 37.25 kB / 0.552 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/0.4029, allocations: 0 / 0.552 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.00164/0.4046, allocations: 0.7952 MB / 0.5528 GB, free: 10.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.4046, allocations: 106.8 kB / 0.5529 GB, free: 10.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.4064, allocations: 1.287 MB / 0.5541 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.4065, allocations: 36.39 kB / 0.5542 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006217/0.4071, allocations: 0.8381 MB / 0.555 GB, free: 8.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.4072, allocations: 142.2 kB / 0.5551 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.4076, allocations: 287.2 kB / 0.5554 GB, free: 7.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.4078, allocations: 361.9 kB / 0.5557 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/0.4084, allocations: 339.8 kB / 0.5561 GB, free: 7.137 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00114/0.4095, allocations: 1.158 MB / 0.5572 GB, free: 5.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.4112, allocations: 1.525 MB / 0.5587 GB, free: 3.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/0.4112, allocations: 12 kB / 0.5587 GB, free: 3.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002572/0.4138, allocations: 1.542 MB / 0.5602 GB, free: 2.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.4139, allocations: 22.69 kB / 0.5602 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/0.4139, allocations: 28.88 kB / 0.5603 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006523/0.4146, allocations: 161.3 kB / 0.5604 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.4157, allocations: 398 kB / 0.5608 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002998/0.4188, allocations: 4.078 MB / 0.5648 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.4198, allocations: 188.6 kB / 0.5649 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.42, allocations: 104 kB / 0.565 GB, free: 12.9 MB / 414.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.4205, allocations: 327.7 kB / 0.5654 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/0.4208, allocations: 114.5 kB / 0.5655 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.4226, allocations: 0.9467 MB / 0.5664 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.4226, allocations: 3.984 kB / 0.5664 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4226, allocations: 0 / 0.5664 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.4229, allocations: 179.6 kB / 0.5666 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/0.4231, allocations: 4 kB / 0.5666 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.4235, allocations: 4 kB / 0.5666 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.4236, allocations: 34.59 kB / 0.5666 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009614/0.4246, allocations: 0.5792 MB / 0.5672 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009443/0.4255, allocations: 0.7811 MB / 0.5679 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001926/0.4257, allocations: 102.6 kB / 0.568 GB, free: 9.797 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001383/0.4271, allocations: 0.9347 MB / 0.5689 GB, free: 8.859 MB / 414.1 MB Notification: Performance of Backend: time 2.7e-07/0.4271, allocations: 0 / 0.5689 GB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005101/0.4322, allocations: 1.946 MB / 0.5708 GB, free: 6.996 MB / 414.1 MB Notification: Performance of SimCode: time 0.003746/0.436, allocations: 2.629 MB / 0.5734 GB, free: 4.422 MB / 414.1 MB Notification: Performance of Templates: time 0.04378/0.4798, allocations: 27.69 MB / 0.6005 GB, free: 9.219 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)