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.001258/0.001258, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.00149/0.00149, allocations: 214.2 kB / 22.24 MB, free: 5.262 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.366/1.366, allocations: 230.6 MB / 256 MB, free: 7.781 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.1344/0.1344, allocations: 23.89 MB / 336.3 MB, free: 10.94 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.001987/0.001987, allocations: 71.89 kB / 471.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3137, allocations: 59.86 MB / 0.5185 GB, free: 9.574 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.07084/0.3846, allocations: 28.62 MB / 0.5465 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03161/0.4162, allocations: 24.85 MB / 0.5708 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.4178, allocations: 35.69 kB / 0.5708 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.4196, allocations: 0.6087 MB / 0.5714 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004098/0.4237, allocations: 1.276 MB / 0.5726 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01227/0.436, allocations: 4.344 MB / 0.5769 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003647/0.4396, allocations: 2.196 MB / 0.579 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.441, allocations: 0.9352 MB / 0.5799 GB, free: 10.91 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.4423, allocations: 1.048 MB / 0.581 GB, free: 9.859 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001518/0.4438, allocations: 1.141 MB / 0.5821 GB, free: 8.715 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003308/0.4441, allocations: 184 kB / 0.5822 GB, free: 8.535 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006513/0.4507, allocations: 2.601 MB / 0.5848 GB, free: 5.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006176/0.4513, allocations: 486.4 kB / 0.5852 GB, free: 5.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.4523, allocations: 0.8169 MB / 0.586 GB, free: 4.633 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.4636, allocations: 5.167 MB / 0.5911 GB, free: 15.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.4636, allocations: 0 / 0.5911 GB, free: 15.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4636, allocations: 0 / 0.5911 GB, free: 15.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.703e-05/0.4636, allocations: 0 / 0.5911 GB, free: 15.45 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.004246/0.4679, allocations: 2.516 MB / 0.5935 GB, free: 12.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.4679, allocations: 8.031 kB / 0.5936 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002479/0.4681, allocations: 215.6 kB / 0.5938 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002203/0.4703, allocations: 0.5299 MB / 0.5943 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/0.4727, allocations: 1.183 MB / 0.5954 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.4728, allocations: 221.9 kB / 0.5956 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.4731, allocations: 140 kB / 0.5958 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003184/0.4763, allocations: 2.031 MB / 0.5978 GB, free: 8.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/0.4763, allocations: 4 kB / 0.5978 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001548/0.4765, allocations: 63.94 kB / 0.5978 GB, free: 8.363 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.218e-05/0.4765, allocations: 40 kB / 0.5979 GB, free: 8.324 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004137/0.4807, allocations: 2.741 MB / 0.6005 GB, free: 5.574 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.4907, allocations: 5.997 MB / 0.6064 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.4925, allocations: 0.9896 MB / 0.6074 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008595/0.4934, allocations: 0.513 MB / 0.6079 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009588/0.5029, allocations: 4.192 MB / 0.612 GB, free: 9.688 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.503, allocations: 42.94 kB / 0.612 GB, free: 9.637 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003759/0.5034, allocations: 103 kB / 0.6121 GB, free: 9.535 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.394e-06/0.5034, allocations: 0 / 0.6121 GB, free: 9.535 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001766/0.5051, allocations: 0.8589 MB / 0.6129 GB, free: 8.668 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.5052, allocations: 115.2 kB / 0.613 GB, free: 8.531 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/0.5067, allocations: 1.292 MB / 0.6143 GB, free: 7.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.986e-05/0.5067, allocations: 37.7 kB / 0.6143 GB, free: 7.188 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007/0.5074, allocations: 0.9936 MB / 0.6153 GB, free: 6.184 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.5076, allocations: 206.4 kB / 0.6155 GB, free: 5.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/0.508, allocations: 339.3 kB / 0.6158 GB, free: 5.641 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5081, allocations: 305.1 kB / 0.6161 GB, free: 5.34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.5086, allocations: 315.8 kB / 0.6164 GB, free: 5.031 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/0.51, allocations: 1.32 MB / 0.6177 GB, free: 3.203 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.512, allocations: 1.809 MB / 0.6195 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/0.5121, allocations: 12 kB / 0.6195 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002623/0.5147, allocations: 1.695 MB / 0.6211 GB, free: 15.16 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.5147, allocations: 24.03 kB / 0.6212 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.532e-05/0.5148, allocations: 36 kB / 0.6212 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005884/0.5153, allocations: 165.6 kB / 0.6214 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.5166, allocations: 483.1 kB / 0.6218 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/0.5196, allocations: 3.874 MB / 0.6256 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00091/0.5206, allocations: 92.11 kB / 0.6257 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/0.5207, allocations: 124 kB / 0.6258 GB, free: 10.09 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.000545/0.5213, allocations: 380.9 kB / 0.6262 GB, free: 9.711 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002245/0.5215, allocations: 151 kB / 0.6263 GB, free: 9.562 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.5239, allocations: 1.377 MB / 0.6277 GB, free: 8.102 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.5239, allocations: 4 kB / 0.6277 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.5239, allocations: 3.938 kB / 0.6277 GB, free: 8.094 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.5239, allocations: 4 kB / 0.6277 GB, free: 8.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.5262, allocations: 1.432 MB / 0.6291 GB, free: 6.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.5262, allocations: 4 kB / 0.6291 GB, free: 6.562 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.5265, allocations: 76.09 kB / 0.6291 GB, free: 6.488 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006669/0.5271, allocations: 175.1 kB / 0.6293 GB, free: 6.305 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.5272, allocations: 16 kB / 0.6293 GB, free: 6.289 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002844/0.53, allocations: 3.745 MB / 0.633 GB, free: 2.25 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.53, allocations: 0 / 0.633 GB, free: 2.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.5314, allocations: 0.989 MB / 0.634 GB, free: 1.199 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.5317, allocations: 131 kB / 0.6341 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.5319, allocations: 12 kB / 0.6341 GB, free: 1.059 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.5323, allocations: 16.16 kB / 0.6341 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/0.5323, allocations: 47.81 kB / 0.6342 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.5324, allocations: 20 kB / 0.6342 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001271/0.5336, allocations: 0.9631 MB / 0.6351 GB, free: 20 kB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5336, allocations: 0 / 0.6351 GB, free: 20 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.002547/0.5362, allocations: 0.8641 MB / 0.636 GB, free: 15.15 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.003576/0.5398, allocations: 2.511 MB / 0.6384 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.5419, allocations: 0.8711 MB / 0.6393 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.5419, allocations: 0 / 0.6393 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.5424, allocations: 405.7 kB / 0.6396 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.5439, allocations: 230.7 kB / 0.6399 GB, free: 11.06 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/0.5596, allocations: 11.87 MB / 0.6515 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006178/0.5603, allocations: 0.6023 MB / 0.652 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001155/0.5614, allocations: 410.5 kB / 0.6524 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008521/0.5623, allocations: 0.6854 MB / 0.6531 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of SimCode: time 1.593e-06/0.5623, allocations: 4 kB / 0.6531 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08978/0.6521, allocations: 41.97 MB / 0.6941 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.11, allocations: 11.73 kB / 0.6941 GB, free: 2.566 MB / 0.5294 GB " [Timeout remaining time 646] (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: 16.71740639800555] Failed to read output from testmodel.py, exit status != 0: 14.246810175012797 14.265790769 13.799073232 Calling exit ...