Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 114.4 kB / 16.42 MB, free: 6.441 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.001108/0.001108, allocations: 189.6 kB / 17.35 MB, free: 5.727 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.353/1.353, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0826/0.0826, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.91 kB / 425.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08904/0.09034, allocations: 53.61 MB / 479.5 MB, free: 5.801 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.ElectrochemicalCell): time 0.03922/0.1296, allocations: 29.83 MB / 0.4974 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2338/0.3634, allocations: 28.69 MB / 0.5254 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.3653, allocations: 31.41 kB / 0.5254 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002286/0.3676, allocations: 0.6508 MB / 0.526 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007109/0.3747, allocations: 2.194 MB / 0.5282 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01144/0.3862, allocations: 3.881 MB / 0.532 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004688/0.3909, allocations: 2.853 MB / 0.5348 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002137/0.3931, allocations: 1.68 MB / 0.5364 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.395, allocations: 1.325 MB / 0.5377 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002561/0.3975, allocations: 1.492 MB / 0.5392 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005363/0.3981, allocations: 258.2 kB / 0.5394 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01128/0.4094, allocations: 3.111 MB / 0.5424 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005939/0.41, allocations: 0.6 MB / 0.543 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.4114, allocations: 1.306 MB / 0.5443 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.4235, allocations: 6.004 MB / 0.5502 GB, free: 14.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4235, allocations: 0 / 0.5502 GB, free: 14.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4235, allocations: 0 / 0.5502 GB, free: 14.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.774e-05/0.4235, allocations: 0 / 0.5502 GB, free: 14.16 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.005278/0.4288, allocations: 3.073 MB / 0.5532 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.4289, allocations: 8.031 kB / 0.5532 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/0.4311, allocations: 0.5505 MB / 0.5537 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002088/0.4332, allocations: 1.297 MB / 0.555 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/0.4334, allocations: 220.3 kB / 0.5552 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003217/0.4337, allocations: 231.8 kB / 0.5554 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00411/0.4378, allocations: 2.674 MB / 0.558 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.4379, allocations: 0 / 0.558 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/0.4381, allocations: 90.62 kB / 0.5581 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.4381, allocations: 52 kB / 0.5582 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004724/0.4429, allocations: 3.31 MB / 0.5614 GB, free: 2.477 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.4558, allocations: 8.634 MB / 0.5698 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/0.4584, allocations: 2.001 MB / 0.5718 GB, free: 7.438 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.4597, allocations: 0.9261 MB / 0.5727 GB, free: 6.508 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01079/0.4705, allocations: 7.892 MB / 0.5804 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.4705, allocations: 51.81 kB / 0.5804 GB, free: 13.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 2.776e-06/0.4705, allocations: 2.688 kB / 0.5804 GB, free: 13.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03145/0.502, allocations: 8.189 MB / 0.5884 GB, free: 5.523 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.853e-05/0.5021, allocations: 103 kB / 0.5885 GB, free: 5.402 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.504, allocations: 1.354 MB / 0.5899 GB, free: 4.031 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.5042, allocations: 57.7 kB / 0.5899 GB, free: 3.969 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007023/0.5049, allocations: 1.049 MB / 0.5909 GB, free: 2.906 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004884/0.5054, allocations: 0.6239 MB / 0.5915 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006374/0.506, allocations: 484.8 kB / 0.592 GB, free: 1.793 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.234e-05/0.5061, allocations: 305.1 kB / 0.5923 GB, free: 1.492 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.5074, allocations: 0.8132 MB / 0.5931 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.5093, allocations: 1.653 MB / 0.5947 GB, free: 14.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.5126, allocations: 2.606 MB / 0.5972 GB, free: 11.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.5127, allocations: 8 kB / 0.5973 GB, free: 11.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006915/0.5196, allocations: 3.039 MB / 0.6002 GB, free: 8.699 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.5196, allocations: 19.94 kB / 0.6002 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-05/0.5197, allocations: 28 kB / 0.6003 GB, free: 8.652 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003224/0.5229, allocations: 0.5207 MB / 0.6008 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003777/0.5267, allocations: 0.7996 MB / 0.6016 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00903/0.5358, allocations: 8.034 MB / 0.6094 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.5376, allocations: 98.48 kB / 0.6095 GB, free: 14.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003293/0.538, allocations: 136 kB / 0.6096 GB, free: 14.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001061/0.539, allocations: 468.3 kB / 0.6101 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005463/0.5396, allocations: 165.9 kB / 0.6102 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00697/0.5466, allocations: 2.573 MB / 0.6127 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.5466, allocations: 7.969 kB / 0.6128 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.5466, allocations: 2.656 kB / 0.6128 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004029/0.547, allocations: 227 kB / 0.613 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003134/0.5473, allocations: 32 kB / 0.613 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.5484, allocations: 39.98 kB / 0.613 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/0.5488, allocations: 153.7 kB / 0.6132 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006879/0.5556, allocations: 2.398 MB / 0.6155 GB, free: 8.473 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004659/0.5603, allocations: 2.918 MB / 0.6184 GB, free: 5.539 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001349/0.5617, allocations: 0.7913 MB / 0.6192 GB, free: 4.746 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00119/0.5629, allocations: 0.8889 MB / 0.62 GB, free: 3.855 MB / 462.1 MB Notification: Performance of Backend: time 3.61e-07/0.5629, allocations: 0 / 0.62 GB, free: 3.855 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008299/0.5712, allocations: 3.497 MB / 0.6234 GB, free: 416 kB / 462.1 MB Notification: Performance of SimCode: time 0.00609/0.5773, allocations: 3.938 MB / 0.6273 GB, free: 12.5 MB / 478.1 MB Notification: Performance of Templates: time 0.07024/0.6476, allocations: 48.38 MB / 0.6745 GB, free: 12.34 MB / 0.5137 GB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)