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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001225/0.001224, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001433/0.001433, allocations: 177.3 kB / 15.94 MB, free: 228 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.443/1.443, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2201/0.2201, allocations: 15.26 MB / 306.2 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003497, allocations: 8 kB / 371.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3231, allocations: 54.62 MB / 426 MB, free: 40.52 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.006575/0.3297, allocations: 7.182 MB / 433.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.3467, allocations: 18.34 MB / 451.5 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.3487, allocations: 37.81 kB / 451.5 MB, free: 25.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002136/0.3509, allocations: 0.4978 MB / 452 MB, free: 24.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005008/0.3559, allocations: 1.23 MB / 453.3 MB, free: 24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009602/0.3656, allocations: 2.967 MB / 456.2 MB, free: 22.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002633/0.3682, allocations: 1.238 MB / 457.5 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.3694, allocations: 0.7331 MB / 458.2 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.3705, allocations: 0.594 MB / 458.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.3718, allocations: 0.7682 MB / 459.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003319/0.3722, allocations: 77.59 kB / 459.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00684/0.379, allocations: 2.364 MB / 462 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004784/0.3795, allocations: 310.6 kB / 462.3 MB, free: 20.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005659/0.3801, allocations: 296.9 kB / 462.6 MB, free: 20.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004973/0.3851, allocations: 2.367 MB / 465 MB, free: 19.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.3851, allocations: 0 / 465 MB, free: 19.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3851, allocations: 0 / 465 MB, free: 19.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.725e-05/0.3852, allocations: 0 / 465 MB, free: 19.24 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.004442/0.3897, allocations: 1.775 MB / 466.7 MB, free: 18.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.3897, allocations: 8.688 kB / 466.7 MB, free: 18.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002441/0.3922, allocations: 436.3 kB / 467.2 MB, free: 17.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002026/0.3942, allocations: 0.9532 MB / 468.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.3944, allocations: 160.8 kB / 468.3 MB, free: 17.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004283/0.3948, allocations: 126.5 kB / 468.4 MB, free: 17.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004149/0.399, allocations: 1.744 MB / 470.2 MB, free: 16.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.3991, allocations: 1.375 kB / 470.2 MB, free: 16.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002463/0.3993, allocations: 56.33 kB / 470.2 MB, free: 16.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-05/0.3994, allocations: 31.62 kB / 470.2 MB, free: 16.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004172/0.4035, allocations: 2.308 MB / 472.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0088/0.4124, allocations: 5.515 MB / 478.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.4138, allocations: 0.7389 MB / 478.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007193/0.421, allocations: 5.567 MB / 484.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.421, allocations: 42 kB / 484.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/0.421, allocations: 0 / 484.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001564/0.4226, allocations: 0.7897 MB / 485.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.4227, allocations: 114.9 kB / 485.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00199/0.4247, allocations: 1.273 MB / 486.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.109e-05/0.4247, allocations: 36.45 kB / 486.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006619/0.4254, allocations: 0.8336 MB / 487.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.4256, allocations: 148.8 kB / 487.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.4256, allocations: 25.5 kB / 487.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4258, allocations: 359.2 kB / 488 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.4263, allocations: 330.9 kB / 488.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008008/0.4271, allocations: 1.136 MB / 489.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007274/0.4279, allocations: 0.51 MB / 489.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.599e-05/0.4279, allocations: 7.469 kB / 490 MB, free: 3.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002369/0.4303, allocations: 1.533 MB / 491.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.4303, allocations: 20 kB / 491.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.4303, allocations: 28 kB / 491.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.431, allocations: 160.4 kB / 491.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.4321, allocations: 404.2 kB / 492.1 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.4345, allocations: 3.882 MB / 496 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.4358, allocations: 195 kB / 496.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.436, allocations: 107.9 kB / 496.3 MB, free: 13.88 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.0005922/0.4366, allocations: 330.7 kB / 496.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.4368, allocations: 111.2 kB / 496.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/0.4388, allocations: 0.9561 MB / 497.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.4388, allocations: 4 kB / 497.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4388, allocations: 4 kB / 497.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4388, allocations: 5.219 kB / 497.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.4412, allocations: 1.342 MB / 499 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4412, allocations: 4 kB / 499 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002497/0.4415, allocations: 59.91 kB / 499.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007497/0.4422, allocations: 183.3 kB / 499.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.4423, allocations: 19.98 kB / 499.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/0.4448, allocations: 3.758 MB / 0.4912 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.4448, allocations: 4 kB / 0.4912 GB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.4461, allocations: 1.054 MB / 0.4923 GB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004383/0.4466, allocations: 219.5 kB / 0.4925 GB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/0.4468, allocations: 15.94 kB / 0.4925 GB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004894/0.4473, allocations: 8 kB / 0.4925 GB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.685e-05/0.4474, allocations: 43.95 kB / 0.4925 GB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.4474, allocations: 20 kB / 0.4926 GB, free: 5.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001246/0.4487, allocations: 0.9307 MB / 0.4935 GB, free: 4.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4487, allocations: 0 / 0.4935 GB, free: 4.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002704/0.4514, allocations: 0.6902 MB / 0.4941 GB, free: 3.719 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.001952/0.4534, allocations: 0.8372 MB / 0.495 GB, free: 2.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.4552, allocations: 0.8312 MB / 0.4958 GB, free: 2.051 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4552, allocations: 0 / 0.4958 GB, free: 2.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005444/0.4558, allocations: 389.1 kB / 0.4961 GB, free: 1.645 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.4568, allocations: 180.5 kB / 0.4963 GB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003537/0.4603, allocations: 2.403 MB / 0.4987 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007731/0.4611, allocations: 1.13 MB / 0.4998 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4623, allocations: 319.8 kB / 0.5001 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.4626, allocations: 151.4 kB / 0.5002 GB, free: 13.4 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4626, allocations: 0 / 0.5002 GB, free: 13.4 MB / 382.1 MB Notification: Performance of Templates: time 0.031/0.4936, allocations: 19.65 MB / 0.5194 GB, free: 9.84 MB / 398.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: