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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 114.2 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 189 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo): time 0.08451/0.08451, allocations: 15.53 MB / 321.8 MB, free: 9.043 MB / 254.1 MB
"
[Timeout remaining time 180]
Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/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=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential")
translateModel(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 67.88 kB / 450.6 MB, free: 9.688 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.108, allocations: 56.58 MB / 0.4953 GB, free: 0.9961 MB / 366.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/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/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.3788/0.4868, allocations: 29.55 MB / 0.5242 GB, free: 5.957 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02846/0.5152, allocations: 28.42 MB / 0.5519 GB, free: 6.219 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.5165, allocations: 33.53 kB / 0.5519 GB, free: 6.199 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001721/0.5183, allocations: 0.6703 MB / 0.5526 GB, free: 5.812 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003546/0.5218, allocations: 1.336 MB / 0.5539 GB, free: 4.98 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.01181/0.5336, allocations: 4.35 MB / 0.5582 GB, free: 2.438 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003058/0.5367, allocations: 2.191 MB / 0.5603 GB, free: 1.203 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.5377, allocations: 0.9283 MB / 0.5612 GB, free: 0.5156 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0009498/0.5387, allocations: 1.038 MB / 0.5622 GB, free: 52 kB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.54, allocations: 1.154 MB / 0.5633 GB, free: 15.38 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001979/0.5402, allocations: 179.1 kB / 0.5635 GB, free: 15.38 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.008853/0.5491, allocations: 2.707 MB / 0.5662 GB, free: 14.41 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0006443/0.5497, allocations: 475 kB / 0.5666 GB, free: 14.05 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001319/0.551, allocations: 0.9861 MB / 0.5676 GB, free: 13.4 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01465/0.5657, allocations: 5.06 MB / 0.5725 GB, free: 8.734 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.5657, allocations: 3.938 kB / 0.5725 GB, free: 8.73 MB / 414.1 MB
Notification: Performance of FrontEnd: time 2.154e-06/0.5657, allocations: 4 kB / 0.5725 GB, free: 8.727 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 3.645e-05/0.5657, allocations: 4 kB / 0.5725 GB, free: 8.723 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.004335/0.57, allocations: 2.511 MB / 0.575 GB, free: 6.168 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.5701, allocations: 12.03 kB / 0.575 GB, free: 6.156 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002177/0.5723, allocations: 0.5259 MB / 0.5755 GB, free: 5.629 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.5743, allocations: 1.175 MB / 0.5766 GB, free: 4.426 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.5745, allocations: 170.7 kB / 0.5768 GB, free: 4.246 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002579/0.5747, allocations: 151.9 kB / 0.577 GB, free: 4.098 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.003169/0.5779, allocations: 2.023 MB / 0.5789 GB, free: 2.004 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/0.5779, allocations: 7.938 kB / 0.5789 GB, free: 1.996 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.5781, allocations: 59.94 kB / 0.579 GB, free: 1.938 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/0.5781, allocations: 36 kB / 0.579 GB, free: 1.902 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00416/0.5823, allocations: 2.772 MB / 0.5817 GB, free: 15.12 MB / 430.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009702/0.592, allocations: 6.58 MB / 0.5882 GB, free: 8.352 MB / 430.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.5938, allocations: 0.9976 MB / 0.5891 GB, free: 7.324 MB / 430.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008899/0.5947, allocations: 0.513 MB / 0.5896 GB, free: 6.805 MB / 430.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.009208/0.6039, allocations: 4.328 MB / 0.5939 GB, free: 2.449 MB / 430.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.6039, allocations: 42.98 kB / 0.5939 GB, free: 2.398 MB / 430.1 MB
Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002781/0.6042, allocations: 107 kB / 0.594 GB, free: 2.293 MB / 430.1 MB
Notification: Performance of pre-optimization done (n=50): time 1.923e-06/0.6042, allocations: 0 / 0.594 GB, free: 2.293 MB / 430.1 MB
Notification: Performance of matching and sorting (n=50): time 0.001764/0.606, allocations: 0.8512 MB / 0.5948 GB, free: 1.43 MB / 430.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/0.606, allocations: 111.2 kB / 0.5949 GB, free: 1.297 MB / 430.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/0.6074, allocations: 1.241 MB / 0.5962 GB, free: 48 kB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.654e-05/0.6075, allocations: 37.95 kB / 0.5962 GB, free: 4 kB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0007166/0.6082, allocations: 0.9975 MB / 0.5972 GB, free: 15 MB / 446.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.6084, allocations: 202.4 kB / 0.5974 GB, free: 14.8 MB / 446.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003867/0.6088, allocations: 339.3 kB / 0.5977 GB, free: 14.46 MB / 446.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001137/0.6089, allocations: 305.1 kB / 0.598 GB, free: 14.16 MB / 446.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/0.6094, allocations: 307.8 kB / 0.5983 GB, free: 13.86 MB / 446.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.6108, allocations: 1.324 MB / 0.5996 GB, free: 12.02 MB / 446.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002103/0.6129, allocations: 1.817 MB / 0.6013 GB, free: 9.691 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/0.6129, allocations: 8 kB / 0.6013 GB, free: 9.684 MB / 446.1 MB
Notification: Performance of matching and sorting (n=199) (initialization): time 0.002645/0.6155, allocations: 1.695 MB / 0.603 GB, free: 7.977 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.6156, allocations: 24 kB / 0.603 GB, free: 7.953 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.528e-05/0.6156, allocations: 40.12 kB / 0.6031 GB, free: 7.914 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005839/0.6162, allocations: 161.6 kB / 0.6032 GB, free: 7.75 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.6175, allocations: 479.2 kB / 0.6037 GB, free: 7.281 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/0.6206, allocations: 3.893 MB / 0.6075 GB, free: 3.102 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008627/0.6215, allocations: 83.86 kB / 0.6076 GB, free: 3.02 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.6216, allocations: 131.9 kB / 0.6077 GB, free: 2.891 MB / 446.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.0005571/0.6222, allocations: 381 kB / 0.608 GB, free: 2.508 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.6224, allocations: 143 kB / 0.6082 GB, free: 2.367 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.6248, allocations: 1.372 MB / 0.6095 GB, free: 0.8945 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.6248, allocations: 8 kB / 0.6095 GB, free: 0.8867 MB / 446.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.6248, allocations: 4 kB / 0.6095 GB, free: 0.8828 MB / 446.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.6248, allocations: 3.984 kB / 0.6095 GB, free: 0.8789 MB / 446.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.6271, allocations: 1.491 MB / 0.611 GB, free: 15.29 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.6271, allocations: 4 kB / 0.611 GB, free: 15.29 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.6274, allocations: 75.89 kB / 0.6111 GB, free: 15.21 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0006676/0.6281, allocations: 183.2 kB / 0.6112 GB, free: 15.02 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.6281, allocations: 12 kB / 0.6113 GB, free: 15.01 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/0.631, allocations: 3.741 MB / 0.6149 GB, free: 10.97 MB / 462.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.631, allocations: 11.88 kB / 0.6149 GB, free: 10.96 MB / 462.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.6323, allocations: 0.9779 MB / 0.6159 GB, free: 9.922 MB / 462.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.6325, allocations: 131 kB / 0.616 GB, free: 9.793 MB / 462.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.6327, allocations: 12 kB / 0.616 GB, free: 9.781 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.6331, allocations: 16.06 kB / 0.616 GB, free: 9.766 MB / 462.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.6332, allocations: 43.81 kB / 0.6161 GB, free: 9.723 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.328e-05/0.6332, allocations: 24 kB / 0.6161 GB, free: 9.699 MB / 462.1 MB
Notification: Performance of sorting global known variables: time 0.001231/0.6344, allocations: 0.9631 MB / 0.617 GB, free: 8.742 MB / 462.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.6344, allocations: 0 / 0.617 GB, free: 8.742 MB / 462.1 MB
Notification: Performance of remove unused functions: time 0.002217/0.6366, allocations: 0.8641 MB / 0.6179 GB, free: 7.875 MB / 462.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.001604/0.6382, allocations: 1.051 MB / 0.6189 GB, free: 6.812 MB / 462.1 MB
Notification: Performance of simCode: created initialization part: time 0.001732/0.64, allocations: 0.8781 MB / 0.6198 GB, free: 5.941 MB / 462.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.64, allocations: 0 / 0.6198 GB, free: 5.941 MB / 462.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005461/0.6405, allocations: 413.2 kB / 0.6202 GB, free: 5.516 MB / 462.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.6417, allocations: 239.5 kB / 0.6204 GB, free: 5.285 MB / 462.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.645, allocations: 2.316 MB / 0.6226 GB, free: 2.898 MB / 462.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007963/0.6458, allocations: 1.188 MB / 0.6238 GB, free: 1.68 MB / 462.1 MB
Notification: Performance of simCode: alias equations: time 0.001075/0.6469, allocations: 409.4 kB / 0.6242 GB, free: 1.281 MB / 462.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.6473, allocations: 202.2 kB / 0.6244 GB, free: 1.086 MB / 462.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.6473, allocations: 0 / 0.6244 GB, free: 1.086 MB / 462.1 MB
Notification: Performance of Templates: time 0.0414/0.6887, allocations: 27.13 MB / 0.6509 GB, free: 6.012 MB / 494.1 MB
"
[Timeout remaining time 659]
make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.makefile [Timeout 660]
(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) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.646027190610766]
Failed to read output from testmodel.py, exit status != 0:
0.6971916751936078 0.710156834 0.141511949
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fe98c7c57b0>