Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") translateModel(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009874/0.009874, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.001811/0.001811, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.511/1.511, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3088/0.3089, allocations: 15.32 MB / 305.8 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.91 kB / 425.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3244, allocations: 53.6 MB / 478.8 MB, free: 25.8 MB / 366.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.StandardLeadAcidPotential): time 0.0374/0.3618, allocations: 28.24 MB / 0.4952 GB, free: 6.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02879/0.3906, allocations: 28.27 MB / 0.5228 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002385/0.393, allocations: 19.88 kB / 0.5228 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.3957, allocations: 0.6749 MB / 0.5234 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006878/0.4027, allocations: 1.315 MB / 0.5247 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01483/0.4175, allocations: 4.25 MB / 0.5289 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004258/0.4218, allocations: 2.199 MB / 0.531 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00202/0.4239, allocations: 1.146 MB / 0.5321 GB, free: 356 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.4257, allocations: 1.021 MB / 0.5331 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002065/0.4278, allocations: 1.125 MB / 0.5342 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007297/0.4285, allocations: 176 kB / 0.5344 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01012/0.4387, allocations: 2.668 MB / 0.537 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009603/0.4397, allocations: 486.4 kB / 0.5375 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.441, allocations: 0.976 MB / 0.5384 GB, free: 9.895 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01556/0.4566, allocations: 5.037 MB / 0.5433 GB, free: 4.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.4566, allocations: 0 / 0.5433 GB, free: 4.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4566, allocations: 0 / 0.5433 GB, free: 4.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.619e-05/0.4567, allocations: 0 / 0.5433 GB, free: 4.84 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.004823/0.4615, allocations: 2.537 MB / 0.5458 GB, free: 2.246 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.4616, allocations: 8.031 kB / 0.5458 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002197/0.4638, allocations: 0.5172 MB / 0.5463 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002138/0.4659, allocations: 1.235 MB / 0.5475 GB, free: 452 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.4661, allocations: 170.7 kB / 0.5477 GB, free: 268 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/0.4664, allocations: 147.9 kB / 0.5478 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003119/0.4695, allocations: 2.019 MB / 0.5498 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.454e-05/0.4695, allocations: 7.938 kB / 0.5498 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.4697, allocations: 60 kB / 0.5499 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.223e-05/0.4698, allocations: 40 kB / 0.5499 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004038/0.4738, allocations: 2.768 MB / 0.5526 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.4841, allocations: 6.582 MB / 0.5591 GB, free: 4.363 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.4859, allocations: 1.064 MB / 0.5601 GB, free: 3.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008582/0.4868, allocations: 0.5599 MB / 0.5606 GB, free: 2.703 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01343/0.5003, allocations: 8.399 MB / 0.5688 GB, free: 9.273 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.5004, allocations: 38.94 kB / 0.5689 GB, free: 9.227 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006026/0.501, allocations: 98.59 kB / 0.569 GB, free: 9.129 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 3.938e-06/0.501, allocations: 0 / 0.569 GB, free: 9.129 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.002157/0.5032, allocations: 0.9971 MB / 0.5699 GB, free: 8.082 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5033, allocations: 119.2 kB / 0.5701 GB, free: 7.941 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/0.505, allocations: 1.233 MB / 0.5713 GB, free: 6.699 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.5051, allocations: 37.64 kB / 0.5713 GB, free: 6.656 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007111/0.5058, allocations: 0.9747 MB / 0.5723 GB, free: 5.668 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.5059, allocations: 189.5 kB / 0.5724 GB, free: 5.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003979/0.5063, allocations: 347 kB / 0.5728 GB, free: 5.133 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.5065, allocations: 301.1 kB / 0.5731 GB, free: 4.836 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/0.507, allocations: 307.8 kB / 0.5733 GB, free: 4.535 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.5082, allocations: 1.32 MB / 0.5746 GB, free: 2.707 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/0.5102, allocations: 1.813 MB / 0.5764 GB, free: 392 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/0.5103, allocations: 12 kB / 0.5764 GB, free: 380 kB / 446.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002561/0.5128, allocations: 1.69 MB / 0.5781 GB, free: 14.67 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.5129, allocations: 20.94 kB / 0.5781 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-05/0.5129, allocations: 36 kB / 0.5781 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006648/0.5136, allocations: 165.6 kB / 0.5783 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.5149, allocations: 483.2 kB / 0.5787 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002937/0.5178, allocations: 4.081 MB / 0.5827 GB, free: 9.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.519, allocations: 91.81 kB / 0.5828 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.5191, allocations: 131.9 kB / 0.5829 GB, free: 9.336 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.0005962/0.5198, allocations: 384.9 kB / 0.5833 GB, free: 8.949 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.52, allocations: 134.4 kB / 0.5834 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.5223, allocations: 1.376 MB / 0.5848 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.5223, allocations: 4 kB / 0.5848 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.5224, allocations: 0 / 0.5848 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5224, allocations: 3.984 kB / 0.5848 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.5247, allocations: 1.518 MB / 0.5863 GB, free: 5.711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5247, allocations: 3.938 kB / 0.5863 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002992/0.525, allocations: 71.95 kB / 0.5863 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007148/0.5257, allocations: 187.2 kB / 0.5865 GB, free: 5.441 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.5258, allocations: 16 kB / 0.5865 GB, free: 5.426 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002618/0.5284, allocations: 3.955 MB / 0.5904 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.5284, allocations: 4 kB / 0.5904 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.5297, allocations: 0.9776 MB / 0.5914 GB, free: 84 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.53, allocations: 195.3 kB / 0.5915 GB, free: 15.87 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.5302, allocations: 15.94 kB / 0.5916 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.5306, allocations: 11.98 kB / 0.5916 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.5306, allocations: 43.97 kB / 0.5916 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.5307, allocations: 16 kB / 0.5916 GB, free: 15.79 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.5319, allocations: 0.967 MB / 0.5926 GB, free: 14.82 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5319, allocations: 4 kB / 0.5926 GB, free: 14.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002679/0.5346, allocations: 0.8463 MB / 0.5934 GB, free: 13.97 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001774/0.5364, allocations: 1.035 MB / 0.5944 GB, free: 12.93 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.5383, allocations: 0.9101 MB / 0.5953 GB, free: 12.03 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5383, allocations: 0 / 0.5953 GB, free: 12.03 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005292/0.5389, allocations: 413 kB / 0.5957 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.5401, allocations: 238.7 kB / 0.5959 GB, free: 11.36 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.5435, allocations: 2.274 MB / 0.5981 GB, free: 9.023 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007715/0.5443, allocations: 1.184 MB / 0.5993 GB, free: 7.809 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.5454, allocations: 410 kB / 0.5997 GB, free: 7.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.5457, allocations: 203.9 kB / 0.5999 GB, free: 7.215 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5457, allocations: 0 / 0.5999 GB, free: 7.215 MB / 478.1 MB Notification: Performance of Templates: time 0.345/0.8907, allocations: 26.44 MB / 0.6257 GB, free: 109.8 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)