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.00124/0.00124, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001347/0.001347, allocations: 212.2 kB / 22.25 MB, free: 5.082 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.321/1.321, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 179] 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.1243/0.1243, allocations: 23.86 MB / 336.3 MB, free: 11.21 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.001883/0.001883, allocations: 72.08 kB / 471.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2714, allocations: 59.86 MB / 0.5186 GB, free: 9.809 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.03575/0.3072, allocations: 29.55 MB / 0.5474 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0325/0.3397, allocations: 28.47 MB / 0.5752 GB, free: 280 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.341, allocations: 31.69 kB / 0.5753 GB, free: 248 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.3426, allocations: 0.6826 MB / 0.5759 GB, free: 15.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.3457, allocations: 1.323 MB / 0.5772 GB, free: 14.22 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0104/0.3561, allocations: 4.356 MB / 0.5815 GB, free: 9.84 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002827/0.3589, allocations: 2.192 MB / 0.5836 GB, free: 7.641 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.36, allocations: 0.9274 MB / 0.5845 GB, free: 6.676 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.3611, allocations: 1.044 MB / 0.5855 GB, free: 5.629 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.3625, allocations: 1.148 MB / 0.5867 GB, free: 4.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.3627, allocations: 176 kB / 0.5868 GB, free: 4.305 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006854/0.3696, allocations: 2.703 MB / 0.5895 GB, free: 1.598 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004681/0.3701, allocations: 482.5 kB / 0.5899 GB, free: 1.125 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009789/0.371, allocations: 0.9838 MB / 0.5909 GB, free: 140 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009331/0.3804, allocations: 5.178 MB / 0.596 GB, free: 10.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3804, allocations: 4 kB / 0.596 GB, free: 10.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3804, allocations: 0 / 0.596 GB, free: 10.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.3804, allocations: 0 / 0.596 GB, free: 10.93 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.003965/0.3844, allocations: 2.52 MB / 0.5984 GB, free: 8.367 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3844, allocations: 15.97 kB / 0.5984 GB, free: 8.352 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002499/0.3846, allocations: 211.6 kB / 0.5986 GB, free: 8.133 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.3867, allocations: 0.5299 MB / 0.5992 GB, free: 7.602 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.3888, allocations: 1.179 MB / 0.6003 GB, free: 6.395 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.389, allocations: 225.8 kB / 0.6005 GB, free: 6.148 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.3892, allocations: 144 kB / 0.6007 GB, free: 6.008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003011/0.3922, allocations: 2.031 MB / 0.6026 GB, free: 3.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.188e-05/0.3923, allocations: 0 / 0.6026 GB, free: 3.906 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001599/0.3924, allocations: 60 kB / 0.6027 GB, free: 3.848 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.999e-05/0.3924, allocations: 40 kB / 0.6027 GB, free: 3.809 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004042/0.3965, allocations: 2.776 MB / 0.6054 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009792/0.4063, allocations: 6.603 MB / 0.6119 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.4081, allocations: 1.006 MB / 0.6129 GB, free: 9.191 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008672/0.4089, allocations: 0.5129 MB / 0.6134 GB, free: 8.668 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009531/0.4185, allocations: 4.351 MB / 0.6176 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.4185, allocations: 42.92 kB / 0.6177 GB, free: 4.238 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003174/0.4188, allocations: 103 kB / 0.6178 GB, free: 4.137 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 1.743e-06/0.4188, allocations: 0 / 0.6178 GB, free: 4.137 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001739/0.4205, allocations: 0.8553 MB / 0.6186 GB, free: 3.273 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.4206, allocations: 119.1 kB / 0.6187 GB, free: 3.133 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.4221, allocations: 1.237 MB / 0.6199 GB, free: 1.887 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.4221, allocations: 29.7 kB / 0.62 GB, free: 1.852 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007057/0.4228, allocations: 1.001 MB / 0.6209 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.423, allocations: 202.4 kB / 0.6211 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003887/0.4234, allocations: 343.3 kB / 0.6215 GB, free: 304 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4235, allocations: 305.2 kB / 0.6217 GB, free: 15.99 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005275/0.424, allocations: 311.8 kB / 0.622 GB, free: 15.69 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.4253, allocations: 1.324 MB / 0.6233 GB, free: 13.86 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.4274, allocations: 1.813 MB / 0.6251 GB, free: 11.54 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.74e-05/0.4274, allocations: 16 kB / 0.6251 GB, free: 11.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002622/0.43, allocations: 1.695 MB / 0.6268 GB, free: 9.812 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.4301, allocations: 20 kB / 0.6268 GB, free: 9.793 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.505e-05/0.4301, allocations: 36 kB / 0.6268 GB, free: 9.758 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005882/0.4307, allocations: 162 kB / 0.627 GB, free: 9.594 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.432, allocations: 491.1 kB / 0.6274 GB, free: 9.113 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002973/0.4349, allocations: 3.878 MB / 0.6312 GB, free: 4.949 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008677/0.4358, allocations: 91.98 kB / 0.6313 GB, free: 4.859 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.436, allocations: 128 kB / 0.6314 GB, free: 4.734 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.0005076/0.4365, allocations: 380.9 kB / 0.6318 GB, free: 4.352 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.4367, allocations: 143.1 kB / 0.6319 GB, free: 4.211 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002408/0.4391, allocations: 1.385 MB / 0.6333 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4391, allocations: 4 kB / 0.6333 GB, free: 2.738 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4391, allocations: 4 kB / 0.6333 GB, free: 2.734 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.4391, allocations: 3.984 kB / 0.6333 GB, free: 2.73 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002308/0.4414, allocations: 1.491 MB / 0.6348 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.4414, allocations: 8.266 kB / 0.6348 GB, free: 1.137 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.4417, allocations: 75.83 kB / 0.6348 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006659/0.4424, allocations: 171.1 kB / 0.635 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.28e-05/0.4424, allocations: 23.98 kB / 0.635 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002795/0.4452, allocations: 3.745 MB / 0.6387 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4452, allocations: 0 / 0.6387 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.4465, allocations: 0.9997 MB / 0.6397 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.4468, allocations: 131 kB / 0.6398 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.4469, allocations: 8 kB / 0.6398 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.4473, allocations: 15.98 kB / 0.6398 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.829e-05/0.4474, allocations: 43.77 kB / 0.6399 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.4474, allocations: 24.05 kB / 0.6399 GB, free: 11.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001206/0.4486, allocations: 0.9631 MB / 0.6408 GB, free: 10.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4486, allocations: 0 / 0.6408 GB, free: 10.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002176/0.4508, allocations: 0.8641 MB / 0.6417 GB, free: 9.719 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.0031/0.4539, allocations: 2.495 MB / 0.6441 GB, free: 7.156 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001646/0.4555, allocations: 0.8789 MB / 0.645 GB, free: 6.285 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4555, allocations: 0 / 0.645 GB, free: 6.285 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005159/0.4561, allocations: 397.1 kB / 0.6453 GB, free: 5.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.4572, allocations: 231.5 kB / 0.6456 GB, free: 5.648 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/0.4716, allocations: 11.89 MB / 0.6572 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007969/0.4724, allocations: 1.184 MB / 0.6583 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001075/0.4735, allocations: 401.1 kB / 0.6587 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000818/0.4743, allocations: 0.6853 MB / 0.6594 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of SimCode: time 6.41e-07/0.4743, allocations: 4 kB / 0.6594 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08192/0.5562, allocations: 41.24 MB / 0.6996 GB, free: 13.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.47, allocations: 2.656 kB / 0.6996 GB, free: 13.2 MB / 0.545 GB " [Timeout remaining time 644] (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: 17.945421694996185] Failed to read output from testmodel.py, exit status != 0: 15.599914970996906 15.61479255 15.231518219 Calling exit ...