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.001349/0.001349, allocations: 101.8 kB / 16.41 MB, free: 6.512 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.001306/0.001306, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0821/0.0821, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.09971, allocations: 53.62 MB / 479.5 MB, free: 5.789 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.StandardLeadAcidPotential): time 0.03889/0.1386, allocations: 28.24 MB / 0.4958 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2698/0.4085, allocations: 28.25 MB / 0.5234 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/0.4103, allocations: 28.56 kB / 0.5234 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.4125, allocations: 0.6689 MB / 0.5241 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.4169, allocations: 1.318 MB / 0.5254 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01369/0.4306, allocations: 4.258 MB / 0.5295 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003806/0.4345, allocations: 2.199 MB / 0.5317 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.4362, allocations: 1.146 MB / 0.5328 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.4379, allocations: 1.024 MB / 0.5338 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001933/0.4398, allocations: 1.119 MB / 0.5349 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003997/0.4402, allocations: 176.6 kB / 0.535 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0108/0.451, allocations: 2.661 MB / 0.5376 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009926/0.4521, allocations: 480.1 kB / 0.5381 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.4536, allocations: 0.9852 MB / 0.5391 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.468, allocations: 5.037 MB / 0.544 GB, free: 3.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.468, allocations: 0 / 0.544 GB, free: 3.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4681, allocations: 2.969 kB / 0.544 GB, free: 3.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.016e-05/0.4681, allocations: 0 / 0.544 GB, free: 3.691 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.004534/0.4727, allocations: 2.533 MB / 0.5465 GB, free: 1.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.4727, allocations: 10.69 kB / 0.5465 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00219/0.4749, allocations: 0.5171 MB / 0.547 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.4767, allocations: 1.219 MB / 0.5482 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.4769, allocations: 173.6 kB / 0.5483 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002471/0.4772, allocations: 147.9 kB / 0.5485 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003146/0.4803, allocations: 2.022 MB / 0.5504 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.4804, allocations: 2.656 kB / 0.5505 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/0.4806, allocations: 56 kB / 0.5505 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.878e-05/0.4806, allocations: 36 kB / 0.5505 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003997/0.4846, allocations: 2.779 MB / 0.5533 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.4948, allocations: 6.593 MB / 0.5597 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.4967, allocations: 1.07 MB / 0.5607 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009107/0.4976, allocations: 0.5586 MB / 0.5613 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01162/0.5093, allocations: 8.39 MB / 0.5695 GB, free: 8.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.5094, allocations: 45.64 kB / 0.5695 GB, free: 8.93 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004905/0.5099, allocations: 102.6 kB / 0.5696 GB, free: 8.828 MB / 414.1 MB Notification: Performance of pre-optimization done (n=50): time 3.898e-06/0.5099, allocations: 0 / 0.5696 GB, free: 8.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=50): time 0.001855/0.5117, allocations: 0.9958 MB / 0.5706 GB, free: 7.785 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.5118, allocations: 115.2 kB / 0.5707 GB, free: 7.648 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.5133, allocations: 1.237 MB / 0.5719 GB, free: 6.402 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.5133, allocations: 37.7 kB / 0.5719 GB, free: 6.359 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006169/0.5139, allocations: 0.9577 MB / 0.5729 GB, free: 5.391 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.5141, allocations: 193.4 kB / 0.5731 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003826/0.5145, allocations: 339.1 kB / 0.5734 GB, free: 4.859 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.872e-05/0.5146, allocations: 305.1 kB / 0.5737 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005133/0.5151, allocations: 303.8 kB / 0.574 GB, free: 4.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.5163, allocations: 1.324 MB / 0.5753 GB, free: 2.461 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/0.5183, allocations: 1.814 MB / 0.577 GB, free: 224 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.781e-05/0.5183, allocations: 12 kB / 0.577 GB, free: 212 kB / 414.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002708/0.521, allocations: 1.69 MB / 0.5787 GB, free: 14.53 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/0.5211, allocations: 20 kB / 0.5787 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-05/0.5211, allocations: 36 kB / 0.5787 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006515/0.5218, allocations: 160.2 kB / 0.5789 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.5231, allocations: 482 kB / 0.5794 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/0.526, allocations: 4.1 MB / 0.5834 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.5273, allocations: 90.33 kB / 0.5834 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.5275, allocations: 128 kB / 0.5836 GB, free: 9.215 MB / 430.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.0006333/0.5282, allocations: 383.5 kB / 0.5839 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.5285, allocations: 138.2 kB / 0.5841 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.5309, allocations: 1.385 MB / 0.5854 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.5309, allocations: 3.938 kB / 0.5854 GB, free: 7.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.5309, allocations: 4 kB / 0.5854 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.5309, allocations: 0 / 0.5854 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.5334, allocations: 1.528 MB / 0.5869 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.5335, allocations: 2.688 kB / 0.5869 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/0.5338, allocations: 71.89 kB / 0.587 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007243/0.5345, allocations: 181.6 kB / 0.5872 GB, free: 5.434 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.5346, allocations: 15.94 kB / 0.5872 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002676/0.5372, allocations: 3.946 MB / 0.591 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.5373, allocations: 4 kB / 0.591 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.5388, allocations: 0.9735 MB / 0.592 GB, free: 120 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003734/0.5392, allocations: 199.5 kB / 0.5922 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.5394, allocations: 15.98 kB / 0.5922 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.5398, allocations: 10.62 kB / 0.5922 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.952e-05/0.5399, allocations: 46.59 kB / 0.5922 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/0.54, allocations: 20 kB / 0.5923 GB, free: 15.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00129/0.5413, allocations: 0.9618 MB / 0.5932 GB, free: 14.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5413, allocations: 0 / 0.5932 GB, free: 14.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002872/0.5442, allocations: 0.8541 MB / 0.594 GB, free: 14 MB / 446.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.002074/0.5463, allocations: 1.027 MB / 0.595 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.5483, allocations: 0.9123 MB / 0.5959 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.5484, allocations: 0 / 0.5959 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005494/0.5489, allocations: 408.6 kB / 0.5963 GB, free: 11.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.5504, allocations: 246.6 kB / 0.5966 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.554, allocations: 2.317 MB / 0.5988 GB, free: 9.184 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.5547, allocations: 1.187 MB / 0.6 GB, free: 7.984 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.5554, allocations: 301.6 kB / 0.6003 GB, free: 7.707 MB / 446.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5554, allocations: 3.938 kB / 0.6003 GB, free: 7.703 MB / 446.1 MB Notification: Performance of Templates: time 0.05059/0.606, allocations: 48.49 MB / 0.6476 GB, free: 7.52 MB / 494.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)