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.001197/0.001197, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001156/0.001156, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0846/0.0846, allocations: 15.3 MB / 306.4 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 61.8 kB / 371.7 MB, free: 50.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08486, allocations: 53.61 MB / 425.4 MB, free: 13.29 MB / 302.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.03351/0.1184, allocations: 28.02 MB / 453.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02746/0.1459, allocations: 28.27 MB / 481.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1471, allocations: 23.81 kB / 481.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.1486, allocations: 0.6787 MB / 482.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003044/0.1517, allocations: 1.303 MB / 483.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.1624, allocations: 4.266 MB / 487.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002668/0.1651, allocations: 2.199 MB / 490.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.1662, allocations: 1.149 MB / 491.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009301/0.1672, allocations: 1.021 MB / 492.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.1684, allocations: 1.121 MB / 493.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002301/0.1686, allocations: 176 kB / 493.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007186/0.1758, allocations: 2.664 MB / 496.2 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004623/0.1763, allocations: 482.5 kB / 496.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009747/0.1773, allocations: 0.9837 MB / 497.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.1875, allocations: 5.014 MB / 0.4909 GB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.1876, allocations: 3.984 kB / 0.4909 GB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1876, allocations: 0 / 0.4909 GB, free: 15.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.827e-05/0.1876, allocations: 0 / 0.4909 GB, free: 15.82 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.004411/0.192, allocations: 2.538 MB / 0.4934 GB, free: 13.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1921, allocations: 8.031 kB / 0.4934 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002235/0.1943, allocations: 0.5211 MB / 0.4939 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.1964, allocations: 1.223 MB / 0.4951 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.1965, allocations: 170.7 kB / 0.4953 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002499/0.1968, allocations: 144 kB / 0.4954 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002871/0.1997, allocations: 2.019 MB / 0.4974 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.1997, allocations: 4 kB / 0.4974 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.1999, allocations: 60 kB / 0.4975 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.172e-05/0.1999, allocations: 36 kB / 0.4975 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003944/0.2039, allocations: 2.78 MB / 0.5002 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2075/0.4114, allocations: 6.576 MB / 0.5066 GB, free: 75.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.4134, allocations: 1.059 MB / 0.5077 GB, free: 75.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009996/0.4144, allocations: 0.5562 MB / 0.5082 GB, free: 75.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.4258, allocations: 8.389 MB / 0.5164 GB, free: 69.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4259, allocations: 37.75 kB / 0.5164 GB, free: 69.89 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000425/0.4263, allocations: 106.2 kB / 0.5165 GB, free: 69.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 3.076e-06/0.4263, allocations: 2.656 kB / 0.5165 GB, free: 69.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001768/0.4281, allocations: 0.9988 MB / 0.5175 GB, free: 69.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.4282, allocations: 114.3 kB / 0.5176 GB, free: 69.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0017/0.4299, allocations: 1.237 MB / 0.5188 GB, free: 68.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.43, allocations: 40.28 kB / 0.5189 GB, free: 68.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006175/0.4306, allocations: 0.9639 MB / 0.5198 GB, free: 67.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.4307, allocations: 192.2 kB / 0.52 GB, free: 67.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003671/0.4311, allocations: 342.2 kB / 0.5203 GB, free: 67.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.277e-05/0.4312, allocations: 306.7 kB / 0.5206 GB, free: 67.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004906/0.4316, allocations: 308 kB / 0.5209 GB, free: 67.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009182/0.4326, allocations: 1.323 MB / 0.5222 GB, free: 65.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.4344, allocations: 1.803 MB / 0.524 GB, free: 64.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.587e-05/0.4345, allocations: 10.38 kB / 0.524 GB, free: 64.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00306/0.4375, allocations: 1.693 MB / 0.5256 GB, free: 63.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.4376, allocations: 21.47 kB / 0.5256 GB, free: 63.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.073e-05/0.4377, allocations: 36.53 kB / 0.5257 GB, free: 63.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006195/0.4383, allocations: 173.5 kB / 0.5258 GB, free: 63.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.4395, allocations: 480.8 kB / 0.5263 GB, free: 63.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/0.4417, allocations: 4.091 MB / 0.5303 GB, free: 59.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.4429, allocations: 89.31 kB / 0.5304 GB, free: 59.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.4431, allocations: 129.5 kB / 0.5305 GB, free: 59.24 MB / 382.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.0005309/0.4436, allocations: 382 kB / 0.5309 GB, free: 58.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.4438, allocations: 137.3 kB / 0.531 GB, free: 58.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/0.4459, allocations: 1.376 MB / 0.5323 GB, free: 58.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4459, allocations: 7.688 kB / 0.5323 GB, free: 58.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.4459, allocations: 2.625 kB / 0.5323 GB, free: 58.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4459, allocations: 0.5156 kB / 0.5323 GB, free: 58.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.448, allocations: 1.519 MB / 0.5338 GB, free: 57.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.448, allocations: 6.625 kB / 0.5338 GB, free: 57.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.4483, allocations: 72.88 kB / 0.5339 GB, free: 57.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006749/0.449, allocations: 173 kB / 0.5341 GB, free: 57.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.449, allocations: 15.61 kB / 0.5341 GB, free: 57.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001928/0.4509, allocations: 3.946 MB / 0.5379 GB, free: 53.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4509, allocations: 3.938 kB / 0.5379 GB, free: 53.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.452, allocations: 0.9783 MB / 0.5389 GB, free: 52.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002837/0.4523, allocations: 201.9 kB / 0.5391 GB, free: 52.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002145/0.4526, allocations: 11.72 kB / 0.5391 GB, free: 52.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/0.4531, allocations: 16.36 kB / 0.5391 GB, free: 52.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.4531, allocations: 34.53 kB / 0.5392 GB, free: 52.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.4532, allocations: 23.64 kB / 0.5392 GB, free: 52.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001239/0.4544, allocations: 0.9686 MB / 0.5401 GB, free: 51.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4544, allocations: 0 / 0.5401 GB, free: 51.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002509/0.4569, allocations: 0.8532 MB / 0.541 GB, free: 51.77 MB / 382.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.002153/0.4591, allocations: 1.038 MB / 0.542 GB, free: 51.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.461, allocations: 0.9131 MB / 0.5429 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.461, allocations: 0 / 0.5429 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004752/0.4615, allocations: 413.6 kB / 0.5433 GB, free: 50.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.4628, allocations: 240.1 kB / 0.5435 GB, free: 50.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.4663, allocations: 2.272 MB / 0.5457 GB, free: 48.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00065/0.467, allocations: 1.193 MB / 0.5469 GB, free: 47.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.4681, allocations: 401.7 kB / 0.5473 GB, free: 47.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.4685, allocations: 197.2 kB / 0.5474 GB, free: 46.85 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4685, allocations: 4 kB / 0.5474 GB, free: 46.85 MB / 382.1 MB Notification: Performance of Templates: time 0.03353/0.502, allocations: 25.91 MB / 0.5727 GB, free: 21.69 MB / 382.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)