Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 106.6 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1356/0.1356, allocations: 23.85 MB / 332.7 MB, free: 12.33 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 63.91 kB / 466 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2946, allocations: 59.82 MB / 0.5135 GB, free: 8.844 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential): time 0.03924/0.3339, allocations: 29.31 MB / 0.5421 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04034/0.3742, allocations: 28.41 MB / 0.5698 GB, free: 1.289 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.3761, allocations: 35.69 kB / 0.5699 GB, free: 1.254 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002677/0.3788, allocations: 0.6805 MB / 0.5705 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006663/0.3855, allocations: 1.324 MB / 0.5718 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01772/0.4032, allocations: 4.293 MB / 0.576 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.4087, allocations: 2.2 MB / 0.5782 GB, free: 8.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/0.4109, allocations: 0.9543 MB / 0.5791 GB, free: 7.922 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002291/0.4132, allocations: 1.036 MB / 0.5801 GB, free: 6.883 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003109/0.4163, allocations: 1.156 MB / 0.5812 GB, free: 5.723 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006047/0.4169, allocations: 176 kB / 0.5814 GB, free: 5.551 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01359/0.4305, allocations: 2.703 MB / 0.5841 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001221/0.4317, allocations: 482.5 kB / 0.5845 GB, free: 2.371 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002108/0.4338, allocations: 0.9838 MB / 0.5855 GB, free: 1.383 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0191/0.4529, allocations: 5.175 MB / 0.5905 GB, free: 12.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.4529, allocations: 7.938 kB / 0.5905 GB, free: 12.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4529, allocations: 0 / 0.5905 GB, free: 12.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.505e-05/0.4529, allocations: 0 / 0.5905 GB, free: 12.18 MB / 446.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.00765/0.4606, allocations: 2.595 MB / 0.5931 GB, free: 9.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.4606, allocations: 16.03 kB / 0.5931 GB, free: 9.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004915/0.4611, allocations: 215.6 kB / 0.5933 GB, free: 9.281 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004672/0.4658, allocations: 0.5259 MB / 0.5938 GB, free: 8.754 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004092/0.4699, allocations: 1.251 MB / 0.595 GB, free: 7.461 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002502/0.4702, allocations: 174.5 kB / 0.5952 GB, free: 7.277 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004186/0.4706, allocations: 143.9 kB / 0.5953 GB, free: 7.137 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003783/0.4744, allocations: 2.035 MB / 0.5973 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.4744, allocations: 8 kB / 0.5973 GB, free: 5.023 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001886/0.4746, allocations: 63.98 kB / 0.5974 GB, free: 4.961 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.029e-05/0.4746, allocations: 39.94 kB / 0.5974 GB, free: 4.922 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004933/0.4796, allocations: 2.772 MB / 0.6001 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.491, allocations: 6.672 MB / 0.6066 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.493, allocations: 1.005 MB / 0.6076 GB, free: 10.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000979/0.494, allocations: 0.513 MB / 0.6081 GB, free: 9.719 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01328/0.5073, allocations: 8.438 MB / 0.6164 GB, free: 248 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.5073, allocations: 42.98 kB / 0.6164 GB, free: 196 kB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004428/0.5078, allocations: 103 kB / 0.6165 GB, free: 92 kB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.015e-06/0.5078, allocations: 0 / 0.6165 GB, free: 92 kB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.002171/0.51, allocations: 1.006 MB / 0.6175 GB, free: 15.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.51, allocations: 115.2 kB / 0.6176 GB, free: 14.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/0.5117, allocations: 1.237 MB / 0.6188 GB, free: 13.66 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.776e-05/0.5117, allocations: 37.69 kB / 0.6188 GB, free: 13.61 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00079/0.5125, allocations: 0.9938 MB / 0.6198 GB, free: 12.61 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.5127, allocations: 206.4 kB / 0.62 GB, free: 12.41 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004815/0.5132, allocations: 343.3 kB / 0.6203 GB, free: 12.06 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5134, allocations: 305.1 kB / 0.6206 GB, free: 11.76 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005916/0.5139, allocations: 307.8 kB / 0.6209 GB, free: 11.46 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.5154, allocations: 1.328 MB / 0.6222 GB, free: 9.625 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002407/0.5178, allocations: 1.813 MB / 0.624 GB, free: 7.301 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/0.5179, allocations: 12 kB / 0.624 GB, free: 7.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00309/0.521, allocations: 1.686 MB / 0.6256 GB, free: 5.59 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.521, allocations: 26.59 kB / 0.6257 GB, free: 5.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.159e-05/0.521, allocations: 48.8 kB / 0.6257 GB, free: 5.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006709/0.5217, allocations: 161.6 kB / 0.6259 GB, free: 5.355 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.5231, allocations: 479.2 kB / 0.6263 GB, free: 4.887 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/0.5267, allocations: 4.081 MB / 0.6303 GB, free: 480 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.5281, allocations: 104.1 kB / 0.6304 GB, free: 376 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.5283, allocations: 124 kB / 0.6305 GB, free: 252 kB / 478.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.0007137/0.529, allocations: 377 kB / 0.6309 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/0.5293, allocations: 147 kB / 0.631 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.5321, allocations: 1.383 MB / 0.6324 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.5321, allocations: 4 kB / 0.6324 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.5321, allocations: 0 / 0.6324 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5321, allocations: 0 / 0.6324 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.5348, allocations: 1.523 MB / 0.6339 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.5348, allocations: 0 / 0.6339 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.5352, allocations: 79.83 kB / 0.634 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008023/0.536, allocations: 179.3 kB / 0.6341 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.536, allocations: 16 kB / 0.6341 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003497/0.5395, allocations: 3.951 MB / 0.638 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.5395, allocations: 4 kB / 0.638 GB, free: 8.043 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.5412, allocations: 0.9854 MB / 0.639 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003318/0.5416, allocations: 212.1 kB / 0.6392 GB, free: 6.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.5417, allocations: 8 kB / 0.6392 GB, free: 6.762 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004505/0.5422, allocations: 12 kB / 0.6392 GB, free: 6.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.299e-05/0.5423, allocations: 47.89 kB / 0.6392 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.5423, allocations: 16 kB / 0.6392 GB, free: 6.688 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001504/0.5438, allocations: 0.967 MB / 0.6402 GB, free: 5.727 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5438, allocations: 0 / 0.6402 GB, free: 5.727 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002735/0.5465, allocations: 0.868 MB / 0.641 GB, free: 4.855 MB / 494.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.003968/0.5505, allocations: 2.502 MB / 0.6435 GB, free: 2.285 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002133/0.5526, allocations: 0.8658 MB / 0.6443 GB, free: 1.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.5526, allocations: 0 / 0.6443 GB, free: 1.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006294/0.5533, allocations: 407.2 kB / 0.6447 GB, free: 1.004 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.5548, allocations: 233.7 kB / 0.6449 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.5726, allocations: 11.87 MB / 0.6565 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009493/0.5736, allocations: 1.192 MB / 0.6577 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0013/0.5749, allocations: 405.8 kB / 0.6581 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009404/0.5758, allocations: 0.6781 MB / 0.6587 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/0.5758, allocations: 4 kB / 0.6587 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09014/0.6659, allocations: 40.29 MB / 0.6981 GB, free: 9.305 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.37, allocations: 7.984 kB / 0.6981 GB, free: 9.297 MB / 0.545 GB " [Timeout remaining time 645] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.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_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.085051479996764] Failed to read output from testmodel.py, exit status != 0: 15.491831345992978 15.513902665 15.056546616 Calling exit ...