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.001301/0.001301, allocations: 116 kB / 16.42 MB, free: 6.488 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.00114/0.001141, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.284/1.284, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07246/0.07246, allocations: 15.3 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 67.89 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08056/0.08177, allocations: 53.62 MB / 479.5 MB, free: 5.781 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.0328/0.1146, allocations: 27.12 MB / 0.4947 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1953/0.3099, allocations: 21.57 MB / 0.5158 GB, free: 18.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006527/0.3106, allocations: 18.56 kB / 0.5158 GB, free: 18.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.3117, allocations: 0.5376 MB / 0.5163 GB, free: 18.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001952/0.3137, allocations: 0.9944 MB / 0.5173 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006918/0.3206, allocations: 3.278 MB / 0.5205 GB, free: 17.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002032/0.3227, allocations: 1.802 MB / 0.5223 GB, free: 16.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.3238, allocations: 0.9402 MB / 0.5232 GB, free: 16.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008049/0.3246, allocations: 0.7931 MB / 0.524 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.3256, allocations: 0.8781 MB / 0.5248 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002409/0.3259, allocations: 148.8 kB / 0.525 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00582/0.3317, allocations: 2.062 MB / 0.527 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003071/0.332, allocations: 382.6 kB / 0.5273 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008192/0.3329, allocations: 0.7997 MB / 0.5281 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006516/0.3394, allocations: 3.955 MB / 0.532 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3394, allocations: 0 / 0.532 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3394, allocations: 0 / 0.532 GB, free: 12.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.341e-05/0.3395, allocations: 0 / 0.532 GB, free: 12.62 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.003565/0.3431, allocations: 2.085 MB / 0.534 GB, free: 11.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.3431, allocations: 8.375 kB / 0.534 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001749/0.3449, allocations: 436.1 kB / 0.5344 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.3463, allocations: 1.051 MB / 0.5355 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.3464, allocations: 154 kB / 0.5356 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/0.3466, allocations: 129.8 kB / 0.5357 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.3489, allocations: 1.746 MB / 0.5374 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/0.3489, allocations: 6.656 kB / 0.5374 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.349, allocations: 52.03 kB / 0.5375 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.3491, allocations: 33.09 kB / 0.5375 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002652/0.3517, allocations: 2.316 MB / 0.5398 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005751/0.3575, allocations: 5.553 MB / 0.5452 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.3585, allocations: 0.7391 MB / 0.5459 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004657/0.359, allocations: 364.3 kB / 0.5463 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006974/0.366, allocations: 5.701 MB / 0.5518 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.366, allocations: 41.22 kB / 0.5519 GB, free: 11.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.094e-06/0.3661, allocations: 0 / 0.5519 GB, free: 11.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.00144/0.3675, allocations: 0.7952 MB / 0.5527 GB, free: 10.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.3676, allocations: 106.8 kB / 0.5528 GB, free: 10.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.369, allocations: 1.287 MB / 0.554 GB, free: 9.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.369, allocations: 33.7 kB / 0.5541 GB, free: 9.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005275/0.3696, allocations: 0.8446 MB / 0.5549 GB, free: 8.332 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.3697, allocations: 142.2 kB / 0.555 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.37, allocations: 287.2 kB / 0.5553 GB, free: 7.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3702, allocations: 357.9 kB / 0.5556 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/0.3707, allocations: 343.8 kB / 0.556 GB, free: 7.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009918/0.3717, allocations: 1.15 MB / 0.5571 GB, free: 5.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/0.3733, allocations: 1.525 MB / 0.5586 GB, free: 3.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-05/0.3733, allocations: 12 kB / 0.5586 GB, free: 3.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002316/0.3756, allocations: 1.55 MB / 0.5601 GB, free: 2.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.3757, allocations: 20 kB / 0.5601 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.107e-05/0.3757, allocations: 28 kB / 0.5601 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006071/0.3763, allocations: 164 kB / 0.5603 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.3775, allocations: 400.7 kB / 0.5607 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00277/0.3803, allocations: 4.074 MB / 0.5647 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009121/0.3812, allocations: 188.7 kB / 0.5648 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.3813, allocations: 104 kB / 0.5649 GB, free: 12.98 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.0004183/0.3817, allocations: 327.7 kB / 0.5653 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.3819, allocations: 118.5 kB / 0.5654 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3837, allocations: 0.9392 MB / 0.5663 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3837, allocations: 0 / 0.5663 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3837, allocations: 0 / 0.5663 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.3839, allocations: 183.6 kB / 0.5665 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.384, allocations: 14.59 kB / 0.5665 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003444/0.3844, allocations: 4 kB / 0.5665 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/0.3845, allocations: 27.91 kB / 0.5665 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009121/0.3854, allocations: 0.5818 MB / 0.5671 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007841/0.3862, allocations: 0.7811 MB / 0.5678 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001532/0.3863, allocations: 99.97 kB / 0.5679 GB, free: 9.875 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.3874, allocations: 0.9347 MB / 0.5688 GB, free: 8.938 MB / 414.1 MB Notification: Performance of Backend: time 8.62e-07/0.3874, allocations: 0 / 0.5688 GB, free: 8.938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004245/0.3916, allocations: 1.956 MB / 0.5707 GB, free: 7.07 MB / 414.1 MB Notification: Performance of SimCode: time 0.003311/0.395, allocations: 2.617 MB / 0.5733 GB, free: 4.5 MB / 414.1 MB Notification: Performance of Templates: time 0.03807/0.433, allocations: 27.7 MB / 0.6004 GB, free: 9.305 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)