Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001674/0.001674, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002172/0.002172, allocations: 215.5 kB / 22.25 MB, free: 4.855 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.505/1.505, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1787/0.1787, allocations: 24 MB / 336.4 MB, free: 10.84 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_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.00241/0.00241, allocations: 67.88 kB / 471.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3584, allocations: 59.89 MB / 0.5187 GB, free: 9.488 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.07589/0.4343, allocations: 28.71 MB / 0.5468 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03542/0.4697, allocations: 24.86 MB / 0.571 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002044/0.4718, allocations: 31.69 kB / 0.5711 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.474, allocations: 0.6087 MB / 0.5717 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004972/0.479, allocations: 1.273 MB / 0.5729 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01353/0.4925, allocations: 4.348 MB / 0.5772 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004372/0.4969, allocations: 2.195 MB / 0.5793 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001984/0.4989, allocations: 0.9156 MB / 0.5802 GB, free: 10.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002142/0.501, allocations: 1.048 MB / 0.5812 GB, free: 9.629 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.5033, allocations: 1.047 MB / 0.5822 GB, free: 8.578 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006907/0.504, allocations: 176 kB / 0.5824 GB, free: 8.406 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01043/0.5144, allocations: 2.543 MB / 0.5849 GB, free: 5.859 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.5156, allocations: 482.5 kB / 0.5853 GB, free: 5.387 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.5175, allocations: 0.8169 MB / 0.5861 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.5316, allocations: 5.167 MB / 0.5912 GB, free: 15.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.5316, allocations: 0 / 0.5912 GB, free: 15.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5316, allocations: 0 / 0.5912 GB, free: 15.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001017/0.5317, allocations: 0 / 0.5912 GB, free: 15.38 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.006491/0.5382, allocations: 2.516 MB / 0.5936 GB, free: 12.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.5382, allocations: 11.97 kB / 0.5937 GB, free: 12.8 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005572/0.5388, allocations: 219.6 kB / 0.5939 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002702/0.5415, allocations: 0.5259 MB / 0.5944 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00296/0.5445, allocations: 1.179 MB / 0.5955 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.5447, allocations: 221.9 kB / 0.5957 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004838/0.5452, allocations: 144 kB / 0.5959 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004616/0.5498, allocations: 2.039 MB / 0.5979 GB, free: 8.352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.108e-05/0.5499, allocations: 0 / 0.5979 GB, free: 8.352 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002858/0.5502, allocations: 63.98 kB / 0.5979 GB, free: 8.289 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.5502, allocations: 40 kB / 0.598 GB, free: 8.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005152/0.5554, allocations: 2.733 MB / 0.6006 GB, free: 5.508 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01326/0.5686, allocations: 6.01 MB / 0.6065 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002221/0.5708, allocations: 0.983 MB / 0.6075 GB, free: 14.35 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.5719, allocations: 0.5208 MB / 0.608 GB, free: 13.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/0.5838, allocations: 4.172 MB / 0.6121 GB, free: 9.629 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/0.5839, allocations: 46.92 kB / 0.6121 GB, free: 9.574 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006096/0.5845, allocations: 103 kB / 0.6122 GB, free: 9.473 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 5.31e-06/0.5845, allocations: 4 kB / 0.6122 GB, free: 9.469 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.002362/0.5869, allocations: 0.859 MB / 0.613 GB, free: 8.602 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.5869, allocations: 115.1 kB / 0.6131 GB, free: 8.465 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.589, allocations: 1.291 MB / 0.6144 GB, free: 7.164 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.554e-05/0.5891, allocations: 37.7 kB / 0.6144 GB, free: 7.121 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008956/0.59, allocations: 0.9897 MB / 0.6154 GB, free: 6.121 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.5902, allocations: 206.4 kB / 0.6156 GB, free: 5.918 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005318/0.5907, allocations: 343.6 kB / 0.6159 GB, free: 5.574 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5909, allocations: 305.1 kB / 0.6162 GB, free: 5.273 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006678/0.5916, allocations: 307.8 kB / 0.6165 GB, free: 4.973 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.5931, allocations: 1.316 MB / 0.6178 GB, free: 3.148 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.5957, allocations: 1.82 MB / 0.6196 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.683e-05/0.5958, allocations: 8 kB / 0.6196 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003563/0.5993, allocations: 1.695 MB / 0.6212 GB, free: 15.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/0.5994, allocations: 26.81 kB / 0.6213 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.335e-05/0.5994, allocations: 36.88 kB / 0.6213 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007409/0.6002, allocations: 169.4 kB / 0.6215 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/0.6017, allocations: 483.1 kB / 0.6219 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003693/0.6054, allocations: 3.882 MB / 0.6257 GB, free: 10.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.6069, allocations: 91.8 kB / 0.6258 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/0.6072, allocations: 124 kB / 0.6259 GB, free: 10.02 MB / 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.0008599/0.6081, allocations: 393 kB / 0.6263 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004211/0.6085, allocations: 143 kB / 0.6264 GB, free: 9.48 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00307/0.6116, allocations: 1.388 MB / 0.6278 GB, free: 8.008 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.6116, allocations: 4 kB / 0.6278 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.6116, allocations: 0 / 0.6278 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.6116, allocations: 0 / 0.6278 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003239/0.6148, allocations: 1.425 MB / 0.6292 GB, free: 6.484 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.6148, allocations: 0 / 0.6292 GB, free: 6.484 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.6152, allocations: 83.81 kB / 0.6293 GB, free: 6.402 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007928/0.616, allocations: 167.6 kB / 0.6294 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.616, allocations: 20 kB / 0.6294 GB, free: 6.207 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.6194, allocations: 3.74 MB / 0.6331 GB, free: 2.172 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.6194, allocations: 4.031 kB / 0.6331 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.6213, allocations: 0.9892 MB / 0.6341 GB, free: 1.117 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005568/0.6218, allocations: 135 kB / 0.6342 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003673/0.6222, allocations: 8 kB / 0.6342 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/0.6228, allocations: 12 kB / 0.6342 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.6229, allocations: 43.88 kB / 0.6343 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.6229, allocations: 19.94 kB / 0.6343 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001686/0.6246, allocations: 0.9709 MB / 0.6352 GB, free: 15.94 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6246, allocations: 4.062 kB / 0.6352 GB, free: 15.93 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003257/0.6279, allocations: 0.8602 MB / 0.6361 GB, free: 15.07 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.004366/0.6322, allocations: 2.495 MB / 0.6385 GB, free: 12.51 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002294/0.6345, allocations: 0.8897 MB / 0.6394 GB, free: 11.63 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.6345, allocations: 0 / 0.6394 GB, free: 11.63 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006921/0.6352, allocations: 398.4 kB / 0.6398 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.6372, allocations: 228.5 kB / 0.64 GB, free: 10.99 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02074/0.6579, allocations: 11.87 MB / 0.6516 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008337/0.6588, allocations: 0.6101 MB / 0.6522 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001359/0.6601, allocations: 406.1 kB / 0.6525 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/0.6612, allocations: 0.6855 MB / 0.6532 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of SimCode: time 1.373e-06/0.6612, allocations: 0 / 0.6532 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/0.7631, allocations: 41.55 MB / 0.6938 GB, free: 2.938 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/15.02, allocations: 3.859 kB / 0.6938 GB, free: 2.934 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.9996925201267] Failed to read output from testmodel.py, exit status != 0: 15.168276405893266 15.196192775 14.659223429 Calling exit ...