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.001125/0.001125, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001525/0.001525, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2079/0.2079, allocations: 15.27 MB / 306.4 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000321/0.000321, allocations: 8 kB / 371.5 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2616, allocations: 54.62 MB / 426.1 MB, free: 40 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.005956/0.2676, allocations: 7.927 MB / 434 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.283, allocations: 19.86 MB / 453.9 MB, free: 23.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.2843, allocations: 39 kB / 453.9 MB, free: 23.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.2854, allocations: 493.6 kB / 454.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002256/0.2876, allocations: 1.039 MB / 455.4 MB, free: 22.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006566/0.2942, allocations: 2.679 MB / 458.1 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.2962, allocations: 1.659 MB / 459.8 MB, free: 19.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007365/0.2969, allocations: 0.7395 MB / 460.5 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006456/0.2976, allocations: 0.6421 MB / 461.2 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007063/0.2983, allocations: 0.7976 MB / 462 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.2985, allocations: 76.94 kB / 462 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004952/0.3034, allocations: 1.94 MB / 464 MB, free: 18.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002985/0.3037, allocations: 302.5 kB / 464.3 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003803/0.3041, allocations: 300.4 kB / 464.6 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003824/0.3079, allocations: 2.966 MB / 467.5 MB, free: 17.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.308, allocations: 0.6094 kB / 467.5 MB, free: 17.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.308, allocations: 1.094 kB / 467.5 MB, free: 17.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.308, allocations: 0 / 467.5 MB, free: 17.12 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.002891/0.3109, allocations: 1.774 MB / 469.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.3109, allocations: 12.72 kB / 469.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.3126, allocations: 437.3 kB / 469.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.314, allocations: 0.9556 MB / 470.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.3142, allocations: 154.4 kB / 470.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.3144, allocations: 127.4 kB / 471 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002685/0.3171, allocations: 1.743 MB / 472.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.3171, allocations: 5.312 kB / 472.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.3172, allocations: 57.2 kB / 472.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.3173, allocations: 35.58 kB / 472.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003321/0.3206, allocations: 2.305 MB / 475.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007135/0.3277, allocations: 5.532 MB / 480.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.329, allocations: 0.7381 MB / 481.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005528/0.3296, allocations: 360.2 kB / 481.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006695/0.3363, allocations: 5.586 MB / 487.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.3363, allocations: 45.25 kB / 487.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.473e-06/0.3363, allocations: 1 kB / 487.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001416/0.3377, allocations: 0.7966 MB / 488.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.3378, allocations: 110.5 kB / 488.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.3393, allocations: 1.277 MB / 489.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.947e-05/0.3393, allocations: 32.17 kB / 489.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003994/0.3397, allocations: 0.8298 MB / 490.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.539e-05/0.3398, allocations: 152.7 kB / 490.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.743e-05/0.3399, allocations: 38.41 kB / 490.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.854e-05/0.34, allocations: 352.3 kB / 490.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004563/0.3404, allocations: 330.4 kB / 491.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007321/0.3412, allocations: 1.144 MB / 492.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006691/0.3418, allocations: 0.5053 MB / 492.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/0.3419, allocations: 12.69 kB / 492.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00204/0.3439, allocations: 1.538 MB / 494.5 MB, free: 76 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3439, allocations: 16 kB / 494.5 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.344, allocations: 31.94 kB / 494.5 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006183/0.3446, allocations: 157.8 kB / 494.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.3457, allocations: 399.4 kB / 495.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.3486, allocations: 3.872 MB / 498.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.3497, allocations: 190.1 kB / 499.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.3498, allocations: 104 kB / 499.2 MB, free: 10.99 MB / 366.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005217/0.3504, allocations: 337 kB / 499.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3505, allocations: 106.6 kB / 499.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.3524, allocations: 0.9533 MB / 0.4889 GB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3524, allocations: 7.938 kB / 0.4889 GB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.3524, allocations: 0 / 0.4889 GB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3525, allocations: 3.984 kB / 0.4889 GB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.3546, allocations: 1.35 MB / 0.4902 GB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.3546, allocations: 0 / 0.4902 GB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.3548, allocations: 63.91 kB / 0.4903 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006919/0.3555, allocations: 187.3 kB / 0.4904 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.371e-05/0.3556, allocations: 16 kB / 0.4905 GB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002495/0.3581, allocations: 3.746 MB / 0.4941 GB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3581, allocations: 4 kB / 0.4941 GB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.3593, allocations: 0.9078 MB / 0.495 GB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003845/0.3597, allocations: 227.4 kB / 0.4952 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.3598, allocations: 8 kB / 0.4952 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.3602, allocations: 15.94 kB / 0.4952 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.921e-05/0.3603, allocations: 39.95 kB / 0.4953 GB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.3603, allocations: 20 kB / 0.4953 GB, free: 2.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.3615, allocations: 0.9229 MB / 0.4962 GB, free: 1.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3615, allocations: 0 / 0.4962 GB, free: 1.527 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0023/0.3638, allocations: 0.698 MB / 0.4969 GB, free: 0.8281 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/0.3653, allocations: 0.8412 MB / 0.4977 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.3669, allocations: 0.8276 MB / 0.4985 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.3669, allocations: 128 / 0.4985 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004667/0.3674, allocations: 393.1 kB / 0.4989 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.3685, allocations: 184.1 kB / 0.4991 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.3716, allocations: 2.425 MB / 0.5014 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006216/0.3722, allocations: 1.099 MB / 0.5025 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001116/0.3733, allocations: 313.7 kB / 0.5028 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.3736, allocations: 162.4 kB / 0.503 GB, free: 10.51 MB / 382.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3736, allocations: 0 / 0.503 GB, free: 10.51 MB / 382.1 MB Notification: Performance of Templates: time 0.0292/0.4028, allocations: 19.81 MB / 0.5223 GB, free: 6.801 MB / 398.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)