Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.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.001198/0.001198, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001398/0.001398, allocations: 216.9 kB / 22.25 MB, free: 5.105 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.401/1.401, allocations: 230.6 MB / 256 MB, free: 7.824 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.1368/0.1368, allocations: 23.89 MB / 336.3 MB, free: 10.98 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.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",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.001993/0.001993, allocations: 67.91 kB / 471.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3131, allocations: 59.86 MB / 0.5185 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008952/0.322, allocations: 10.25 MB / 0.5285 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03748/0.3595, allocations: 29.73 MB / 0.5576 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002551/0.3621, allocations: 39.19 kB / 0.5576 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.3646, allocations: 0.6797 MB / 0.5583 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009937/0.3746, allocations: 2.756 MB / 0.561 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01326/0.3878, allocations: 4.509 MB / 0.5654 GB, free: 8.105 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004941/0.3928, allocations: 3.422 MB / 0.5687 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00241/0.3952, allocations: 1.712 MB / 0.5704 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00236/0.3975, allocations: 1.687 MB / 0.572 GB, free: 2.879 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002577/0.4001, allocations: 1.884 MB / 0.5739 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005391/0.4006, allocations: 324 kB / 0.5742 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01026/0.4109, allocations: 3.635 MB / 0.5777 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.4119, allocations: 0.7595 MB / 0.5785 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.414, allocations: 1.342 MB / 0.5798 GB, free: 10.92 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.4298, allocations: 7.486 MB / 0.5871 GB, free: 3.406 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4298, allocations: 3.938 kB / 0.5871 GB, free: 3.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.4298, allocations: 3.938 kB / 0.5871 GB, free: 3.398 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.899e-05/0.4298, allocations: 0 / 0.5871 GB, free: 3.398 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.007384/0.4372, allocations: 3.693 MB / 0.5907 GB, free: 15.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.4372, allocations: 12.03 kB / 0.5907 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004334/0.4377, allocations: 363.2 kB / 0.5911 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002567/0.4402, allocations: 0.6347 MB / 0.5917 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003194/0.4434, allocations: 1.442 MB / 0.5931 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.4437, allocations: 316.2 kB / 0.5934 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006039/0.4443, allocations: 267.9 kB / 0.5937 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005589/0.4499, allocations: 3.157 MB / 0.5967 GB, free: 9.332 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/0.45, allocations: 0 / 0.5967 GB, free: 9.332 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002517/0.4502, allocations: 108 kB / 0.5968 GB, free: 9.227 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.554e-05/0.4503, allocations: 60 kB / 0.5969 GB, free: 9.168 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006212/0.4565, allocations: 3.815 MB / 0.6006 GB, free: 5.34 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01621/0.4727, allocations: 8.198 MB / 0.6086 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004619/0.4773, allocations: 2.766 MB / 0.6113 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001912/0.4792, allocations: 1.238 MB / 0.6125 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01382/0.4931, allocations: 6.031 MB / 0.6184 GB, free: 2.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.4931, allocations: 52.56 kB / 0.6185 GB, free: 2.852 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009885/0.4941, allocations: 226.5 kB / 0.6187 GB, free: 2.629 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.118e-06/0.4941, allocations: 4 kB / 0.6187 GB, free: 2.625 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.043/0.5371, allocations: 11.85 MB / 0.6303 GB, free: 6.727 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.5372, allocations: 81.34 kB / 0.6303 GB, free: 6.637 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.5389, allocations: 1.214 MB / 0.6315 GB, free: 5.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003268/0.5392, allocations: 65.7 kB / 0.6316 GB, free: 5.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009097/0.5402, allocations: 1.192 MB / 0.6328 GB, free: 4.137 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008697/0.541, allocations: 0.9025 MB / 0.6336 GB, free: 3.227 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000866/0.5419, allocations: 0.5574 MB / 0.6342 GB, free: 2.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.542, allocations: 301.1 kB / 0.6345 GB, free: 2.363 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.544, allocations: 1.009 MB / 0.6355 GB, free: 1.352 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002641/0.5466, allocations: 1.909 MB / 0.6373 GB, free: 15.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00494/0.5516, allocations: 3.2 MB / 0.6404 GB, free: 11.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.413e-05/0.5516, allocations: 8 kB / 0.6405 GB, free: 11.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01009/0.5617, allocations: 4.118 MB / 0.6445 GB, free: 7.238 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.5617, allocations: 16 kB / 0.6445 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.614e-05/0.5618, allocations: 32 kB / 0.6445 GB, free: 7.191 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005695/0.5675, allocations: 1.358 MB / 0.6458 GB, free: 5.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002439/0.5699, allocations: 0.6591 MB / 0.6465 GB, free: 5.156 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.5816, allocations: 7.922 MB / 0.6542 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.5841, allocations: 99.98 kB / 0.6543 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006494/0.5847, allocations: 167.9 kB / 0.6545 GB, free: 12.59 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (341): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001595/0.5863, allocations: 0.5086 MB / 0.655 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007569/0.5871, allocations: 214.6 kB / 0.6552 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009994/0.5971, allocations: 3.867 MB / 0.659 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/0.5971, allocations: 24 kB / 0.659 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.5971, allocations: 7.938 kB / 0.659 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.515e-05/0.5972, allocations: 11.95 kB / 0.659 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/0.6107, allocations: 5.948 MB / 0.6648 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.6107, allocations: 4.344 kB / 0.6648 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/0.6126, allocations: 443.4 kB / 0.6652 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00538/0.6179, allocations: 1.252 MB / 0.6665 GB, free: 84 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003542/0.6183, allocations: 95.94 kB / 0.6665 GB, free: 15.99 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/0.6285, allocations: 7.424 MB / 0.6738 GB, free: 8.203 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.6285, allocations: 4 kB / 0.6738 GB, free: 8.199 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01184/0.6403, allocations: 5.036 MB / 0.6787 GB, free: 3.008 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000622/0.641, allocations: 178.6 kB / 0.6789 GB, free: 2.832 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003977/0.6414, allocations: 56 kB / 0.6789 GB, free: 2.777 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.6426, allocations: 59.97 kB / 0.679 GB, free: 2.719 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005358/0.6432, allocations: 237.6 kB / 0.6792 GB, free: 2.484 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/0.6434, allocations: 107.9 kB / 0.6793 GB, free: 2.379 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.001033/0.6444, allocations: 0.7311 MB / 0.68 GB, free: 1.648 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/0.6444, allocations: 96 / 0.68 GB, free: 1.648 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004442/0.6489, allocations: 1.508 MB / 0.6815 GB, free: 140 kB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * 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 (222): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01453/0.6634, allocations: 7.023 MB / 0.6884 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006711/0.6701, allocations: 3.255 MB / 0.6916 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.6701, allocations: 0 / 0.6916 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003511/0.6736, allocations: 1.832 MB / 0.6933 GB, free: 3.742 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.6755, allocations: 405.3 kB / 0.6937 GB, free: 3.352 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04015/0.7157, allocations: 20.19 MB / 0.7134 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.7169, allocations: 1.037 MB / 0.7145 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00212/0.719, allocations: 0.5047 MB / 0.7149 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00191/0.7209, allocations: 1.179 MB / 0.7161 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of SimCode: time 1.844e-06/0.7209, allocations: 0 / 0.7161 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3254/1.046, allocations: 77.1 MB / 0.7914 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.45/16.5, allocations: 10.11 kB / 0.7914 GB, free: 138.1 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.LeadAcidBattery_res.csv --start-time 0 --stop-time 47800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 19.12 Chemical_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.18473779701162] Failed to read output from testmodel.py, exit status != 0: 16.65643450699281 16.664874595 16.232891202 Calling exit ...