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.008622/0.008622, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001871/0.001871, allocations: 201.8 kB / 16.68 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1998/0.1998, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 59.89 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2598, allocations: 53.62 MB / 478.3 MB, free: 25.62 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.03353/0.2934, allocations: 28.3 MB / 0.4947 GB, free: 6.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0301/0.3235, allocations: 28.27 MB / 0.5224 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002443/0.326, allocations: 23.81 kB / 0.5224 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002149/0.3282, allocations: 0.6749 MB / 0.523 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004273/0.3324, allocations: 1.331 MB / 0.5243 GB, free: 7.996 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01266/0.3451, allocations: 4.289 MB / 0.5285 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003297/0.3485, allocations: 2.203 MB / 0.5307 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.35, allocations: 1.146 MB / 0.5318 GB, free: 292 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.3514, allocations: 1.017 MB / 0.5328 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001603/0.353, allocations: 1.121 MB / 0.5339 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005053/0.3535, allocations: 176 kB / 0.5341 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009279/0.3628, allocations: 2.672 MB / 0.5367 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009643/0.3638, allocations: 474.5 kB / 0.5371 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001636/0.3655, allocations: 0.9877 MB / 0.5381 GB, free: 9.836 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.3762, allocations: 5.046 MB / 0.543 GB, free: 4.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3762, allocations: 3.984 kB / 0.543 GB, free: 4.766 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3763, allocations: 0 / 0.543 GB, free: 4.766 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.615e-05/0.3763, allocations: 0 / 0.543 GB, free: 4.766 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.004697/0.381, allocations: 2.607 MB / 0.5456 GB, free: 2.094 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3811, allocations: 8.031 kB / 0.5456 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002811/0.3814, allocations: 215.6 kB / 0.5458 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002318/0.3837, allocations: 0.5298 MB / 0.5463 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002469/0.3862, allocations: 1.244 MB / 0.5475 GB, free: 48 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.3864, allocations: 170.5 kB / 0.5477 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003636/0.3868, allocations: 144 kB / 0.5478 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003692/0.3905, allocations: 2.019 MB / 0.5498 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.3905, allocations: 0 / 0.5498 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.3907, allocations: 60 kB / 0.5498 GB, free: 13.58 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-05/0.3908, allocations: 44 kB / 0.5499 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004323/0.3951, allocations: 2.768 MB / 0.5526 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/0.4066, allocations: 6.611 MB / 0.559 GB, free: 3.949 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.4088, allocations: 1.064 MB / 0.5601 GB, free: 2.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009817/0.4098, allocations: 0.5599 MB / 0.5606 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/0.4222, allocations: 8.396 MB / 0.5688 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.4222, allocations: 39 kB / 0.5689 GB, free: 8.816 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004553/0.4227, allocations: 103 kB / 0.569 GB, free: 8.715 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 3.366e-06/0.4227, allocations: 0 / 0.569 GB, free: 8.715 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.001982/0.4247, allocations: 1.006 MB / 0.5699 GB, free: 7.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.4248, allocations: 115.2 kB / 0.57 GB, free: 7.523 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/0.4263, allocations: 1.241 MB / 0.5713 GB, free: 6.273 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.931e-05/0.4263, allocations: 37.64 kB / 0.5713 GB, free: 6.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006666/0.427, allocations: 0.9975 MB / 0.5723 GB, free: 5.223 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.4272, allocations: 202.4 kB / 0.5725 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004131/0.4277, allocations: 339.3 kB / 0.5728 GB, free: 4.684 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.951e-05/0.4278, allocations: 309.2 kB / 0.5731 GB, free: 4.379 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005567/0.4283, allocations: 311.8 kB / 0.5734 GB, free: 4.074 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.4295, allocations: 1.316 MB / 0.5747 GB, free: 2.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/0.4315, allocations: 1.809 MB / 0.5764 GB, free: 15.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.125e-05/0.4316, allocations: 12 kB / 0.5764 GB, free: 15.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00284/0.4344, allocations: 1.699 MB / 0.5781 GB, free: 14.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.4345, allocations: 23.94 kB / 0.5781 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.096e-05/0.4345, allocations: 36 kB / 0.5782 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006363/0.4351, allocations: 170 kB / 0.5783 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.4365, allocations: 483.2 kB / 0.5788 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002957/0.4395, allocations: 4.085 MB / 0.5828 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.4407, allocations: 95.94 kB / 0.5829 GB, free: 8.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/0.4408, allocations: 132 kB / 0.583 GB, free: 8.859 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.0005809/0.4414, allocations: 372.9 kB / 0.5833 GB, free: 8.484 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.4417, allocations: 143.1 kB / 0.5835 GB, free: 8.344 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.4441, allocations: 1.384 MB / 0.5848 GB, free: 6.859 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4442, allocations: 4 kB / 0.5848 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.4442, allocations: 0 / 0.5848 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4442, allocations: 3.984 kB / 0.5848 GB, free: 6.852 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.4467, allocations: 1.522 MB / 0.5863 GB, free: 5.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.4467, allocations: 8.281 kB / 0.5863 GB, free: 5.223 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.4471, allocations: 79.81 kB / 0.5864 GB, free: 5.145 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007308/0.4478, allocations: 171.1 kB / 0.5866 GB, free: 4.965 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.453e-05/0.4478, allocations: 16 kB / 0.5866 GB, free: 4.949 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002795/0.4506, allocations: 3.943 MB / 0.5904 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4507, allocations: 4.031 kB / 0.5904 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.4521, allocations: 0.994 MB / 0.5914 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003727/0.4525, allocations: 212 kB / 0.5916 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.4528, allocations: 8 kB / 0.5916 GB, free: 15.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.4533, allocations: 15.98 kB / 0.5916 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.03e-05/0.4534, allocations: 35.84 kB / 0.5917 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.4534, allocations: 28.05 kB / 0.5917 GB, free: 15.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00135/0.4548, allocations: 0.9669 MB / 0.5926 GB, free: 14.33 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4548, allocations: 0 / 0.5926 GB, free: 14.33 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002571/0.4573, allocations: 0.8641 MB / 0.5935 GB, free: 13.46 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.003807/0.4612, allocations: 2.478 MB / 0.5959 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.4632, allocations: 0.9015 MB / 0.5968 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.4632, allocations: 1 kB / 0.5968 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000594/0.4638, allocations: 417.1 kB / 0.5972 GB, free: 9.586 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.4657, allocations: 238.1 kB / 0.5974 GB, free: 9.352 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2316/0.6973, allocations: 11.87 MB / 0.609 GB, free: 113.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007732/0.6981, allocations: 1.185 MB / 0.6102 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001207/0.6993, allocations: 399.4 kB / 0.6105 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000804/0.7001, allocations: 0.6761 MB / 0.6112 GB, free: 112.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7001, allocations: 0.875 kB / 0.6112 GB, free: 112.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07011/0.7703, allocations: 39.57 MB / 0.6498 GB, free: 92.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.9, allocations: 7.922 kB / 0.6498 GB, free: 92.32 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)