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: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005113/0.005114, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.001188/0.001188, allocations: 199.4 kB / 16.68 MB, free: 5.934 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2235/0.2235, allocations: 15.31 MB / 305.8 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2689, allocations: 53.61 MB / 478.3 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.03599/0.3049, allocations: 28.28 MB / 0.4947 GB, free: 6.445 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03006/0.335, allocations: 28.27 MB / 0.5223 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002389/0.3374, allocations: 23.88 kB / 0.5223 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.3394, allocations: 0.667 MB / 0.523 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00436/0.3438, allocations: 1.323 MB / 0.5243 GB, free: 8.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01099/0.3548, allocations: 4.293 MB / 0.5285 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.3582, allocations: 2.199 MB / 0.5306 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.3598, allocations: 1.153 MB / 0.5317 GB, free: 328 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.361, allocations: 1.025 MB / 0.5327 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.3624, allocations: 1.121 MB / 0.5338 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003013/0.3627, allocations: 180 kB / 0.534 GB, free: 13.99 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00748/0.3702, allocations: 2.664 MB / 0.5366 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006748/0.3709, allocations: 482.5 kB / 0.5371 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.3721, allocations: 0.976 MB / 0.538 GB, free: 9.871 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.3825, allocations: 5.033 MB / 0.5429 GB, free: 4.82 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3826, allocations: 0 / 0.5429 GB, free: 4.82 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3826, allocations: 7.938 kB / 0.543 GB, free: 4.812 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.159e-05/0.3826, allocations: 4 kB / 0.543 GB, free: 4.809 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.004063/0.3867, allocations: 2.526 MB / 0.5454 GB, free: 2.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3867, allocations: 12.03 kB / 0.5454 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002351/0.387, allocations: 215.6 kB / 0.5456 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/0.3892, allocations: 0.5172 MB / 0.5461 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.3913, allocations: 1.235 MB / 0.5474 GB, free: 196 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.3914, allocations: 174.5 kB / 0.5475 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/0.3917, allocations: 140 kB / 0.5477 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003154/0.3949, allocations: 2.019 MB / 0.5496 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.504e-05/0.3949, allocations: 7.938 kB / 0.5496 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.3951, allocations: 56 kB / 0.5497 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/0.3951, allocations: 36 kB / 0.5497 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004205/0.3993, allocations: 2.768 MB / 0.5524 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009798/0.4092, allocations: 6.594 MB / 0.5589 GB, free: 4.113 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.411, allocations: 1.057 MB / 0.5599 GB, free: 3.027 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009051/0.412, allocations: 0.5638 MB / 0.5604 GB, free: 2.457 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01139/0.4234, allocations: 8.387 MB / 0.5686 GB, free: 9.039 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.4234, allocations: 46.94 kB / 0.5687 GB, free: 8.984 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003632/0.4238, allocations: 102.6 kB / 0.5688 GB, free: 8.883 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 2.264e-06/0.4238, allocations: 0 / 0.5688 GB, free: 8.883 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.001834/0.4256, allocations: 0.9932 MB / 0.5697 GB, free: 7.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/0.4257, allocations: 115.4 kB / 0.5699 GB, free: 7.703 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001436/0.4272, allocations: 1.241 MB / 0.5711 GB, free: 6.453 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.4272, allocations: 37.7 kB / 0.5711 GB, free: 6.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006342/0.4279, allocations: 0.9705 MB / 0.5721 GB, free: 5.426 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.428, allocations: 189.5 kB / 0.5722 GB, free: 5.238 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003829/0.4284, allocations: 339 kB / 0.5726 GB, free: 4.898 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.4285, allocations: 305.1 kB / 0.5728 GB, free: 4.598 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.429, allocations: 307.8 kB / 0.5731 GB, free: 4.297 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.4305, allocations: 1.32 MB / 0.5744 GB, free: 2.469 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.4326, allocations: 1.813 MB / 0.5762 GB, free: 148 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/0.4327, allocations: 8 kB / 0.5762 GB, free: 140 kB / 446.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002829/0.4355, allocations: 1.694 MB / 0.5779 GB, free: 14.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.4356, allocations: 24 kB / 0.5779 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.003e-05/0.4356, allocations: 40 kB / 0.5779 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/0.4363, allocations: 161.5 kB / 0.5781 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.4377, allocations: 487.2 kB / 0.5785 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003039/0.4407, allocations: 4.081 MB / 0.5825 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.4419, allocations: 91.84 kB / 0.5826 GB, free: 9.219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/0.4421, allocations: 136 kB / 0.5827 GB, free: 9.086 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.000592/0.4427, allocations: 380.9 kB / 0.5831 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.443, allocations: 134.3 kB / 0.5832 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002509/0.4455, allocations: 1.372 MB / 0.5846 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.4455, allocations: 4 kB / 0.5846 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4455, allocations: 4 kB / 0.5846 GB, free: 7.09 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4455, allocations: 7.984 kB / 0.5846 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002712/0.4483, allocations: 1.522 MB / 0.5861 GB, free: 5.461 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.4483, allocations: 4 kB / 0.5861 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.4486, allocations: 71.89 kB / 0.5862 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007341/0.4493, allocations: 191.2 kB / 0.5863 GB, free: 5.188 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.4494, allocations: 12 kB / 0.5863 GB, free: 5.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002831/0.4522, allocations: 3.947 MB / 0.5902 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4522, allocations: 4 kB / 0.5902 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.4537, allocations: 0.9776 MB / 0.5912 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003908/0.4541, allocations: 203.4 kB / 0.5914 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.4544, allocations: 11.94 kB / 0.5914 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004937/0.4549, allocations: 15.98 kB / 0.5914 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.384e-05/0.455, allocations: 35.91 kB / 0.5914 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-05/0.455, allocations: 16 kB / 0.5914 GB, free: 15.54 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001392/0.4564, allocations: 0.967 MB / 0.5924 GB, free: 14.58 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4564, allocations: 3.938 kB / 0.5924 GB, free: 14.58 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002454/0.4589, allocations: 0.8502 MB / 0.5932 GB, free: 13.73 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.003817/0.4627, allocations: 2.468 MB / 0.5956 GB, free: 11.19 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.4647, allocations: 0.9044 MB / 0.5965 GB, free: 10.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.4647, allocations: 1.938 kB / 0.5965 GB, free: 10.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005444/0.4653, allocations: 417.5 kB / 0.5969 GB, free: 9.859 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.4668, allocations: 235.9 kB / 0.5971 GB, free: 9.629 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2266/0.6934, allocations: 11.79 MB / 0.6086 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008822/0.6943, allocations: 1.188 MB / 0.6098 GB, free: 112.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001245/0.6955, allocations: 397.8 kB / 0.6102 GB, free: 112.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008703/0.6964, allocations: 0.6751 MB / 0.6108 GB, free: 112.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6964, allocations: 0 / 0.6108 GB, free: 112.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06479/0.7612, allocations: 39.56 MB / 0.6495 GB, free: 92.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.95, allocations: 14.95 kB / 0.6495 GB, free: 92.55 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)