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.001898/0.001898, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00218/0.00218, allocations: 215.5 kB / 22.25 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.56/1.56, allocations: 230.6 MB / 256 MB, free: 7.797 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.1398/0.1398, allocations: 23.87 MB / 336.3 MB, free: 10.96 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.002131/0.002131, allocations: 75.02 kB / 471.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3222, allocations: 59.85 MB / 0.5185 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01009/0.3323, allocations: 10.24 MB / 0.5285 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0411/0.3734, allocations: 29.73 MB / 0.5576 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002473/0.3759, allocations: 42.25 kB / 0.5576 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.3785, allocations: 0.6839 MB / 0.5583 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.3886, allocations: 2.752 MB / 0.561 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01431/0.403, allocations: 4.513 MB / 0.5654 GB, free: 8.141 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005144/0.4081, allocations: 3.418 MB / 0.5687 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002902/0.411, allocations: 1.673 MB / 0.5703 GB, free: 4.543 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003079/0.4141, allocations: 1.679 MB / 0.572 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003663/0.4177, allocations: 1.681 MB / 0.5736 GB, free: 1.172 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009888/0.4187, allocations: 324 kB / 0.5739 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01105/0.4298, allocations: 3.549 MB / 0.5774 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.4312, allocations: 0.7595 MB / 0.5781 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00264/0.4338, allocations: 1.339 MB / 0.5795 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01662/0.4504, allocations: 7.486 MB / 0.5868 GB, free: 3.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4504, allocations: 0 / 0.5868 GB, free: 3.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4504, allocations: 0 / 0.5868 GB, free: 3.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001285/0.4506, allocations: 0 / 0.5868 GB, free: 3.68 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.008308/0.4589, allocations: 3.701 MB / 0.5904 GB, free: 15.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.4589, allocations: 12.03 kB / 0.5904 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005788/0.4595, allocations: 359.2 kB / 0.5907 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002772/0.4623, allocations: 0.6348 MB / 0.5914 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003157/0.4654, allocations: 1.442 MB / 0.5928 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003071/0.4657, allocations: 312.2 kB / 0.5931 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006012/0.4663, allocations: 271.9 kB / 0.5933 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005846/0.4722, allocations: 3.157 MB / 0.5964 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.115e-05/0.4722, allocations: 0 / 0.5964 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002688/0.4725, allocations: 108 kB / 0.5965 GB, free: 9.504 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.303e-05/0.4725, allocations: 71.94 kB / 0.5966 GB, free: 9.434 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006552/0.4791, allocations: 3.807 MB / 0.6003 GB, free: 5.613 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.0175/0.4966, allocations: 8.194 MB / 0.6083 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005173/0.5018, allocations: 2.779 MB / 0.611 GB, free: 10.49 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.5039, allocations: 1.231 MB / 0.6122 GB, free: 9.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01489/0.5188, allocations: 6.03 MB / 0.6181 GB, free: 3.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/0.5189, allocations: 52.56 kB / 0.6181 GB, free: 3.121 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009874/0.5199, allocations: 234.5 kB / 0.6184 GB, free: 2.891 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.982e-06/0.5199, allocations: 0 / 0.6184 GB, free: 2.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04711/0.567, allocations: 11.84 MB / 0.6299 GB, free: 7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.185e-05/0.567, allocations: 77.41 kB / 0.63 GB, free: 6.914 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.5689, allocations: 1.218 MB / 0.6312 GB, free: 5.684 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003168/0.5692, allocations: 65.7 kB / 0.6313 GB, free: 5.613 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009691/0.5702, allocations: 1.192 MB / 0.6324 GB, free: 4.41 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.5712, allocations: 0.8986 MB / 0.6333 GB, free: 3.504 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001091/0.5723, allocations: 0.5613 MB / 0.6339 GB, free: 2.934 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.5725, allocations: 301.1 kB / 0.6341 GB, free: 2.637 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/0.5745, allocations: 1.009 MB / 0.6351 GB, free: 1.625 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002966/0.5775, allocations: 1.905 MB / 0.637 GB, free: 15.33 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005659/0.5832, allocations: 3.2 MB / 0.6401 GB, free: 11.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-05/0.5832, allocations: 12 kB / 0.6401 GB, free: 11.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01172/0.5949, allocations: 4.114 MB / 0.6441 GB, free: 7.516 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.851e-05/0.595, allocations: 16 kB / 0.6442 GB, free: 7.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.548e-05/0.595, allocations: 28 kB / 0.6442 GB, free: 7.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006432/0.6014, allocations: 1.361 MB / 0.6455 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/0.6042, allocations: 0.6591 MB / 0.6462 GB, free: 5.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01345/0.6177, allocations: 7.918 MB / 0.6539 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/0.6199, allocations: 95.98 kB / 0.654 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005697/0.6205, allocations: 171.9 kB / 0.6541 GB, free: 12.88 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.001456/0.6219, allocations: 0.5047 MB / 0.6546 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007098/0.6227, allocations: 210.6 kB / 0.6548 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/0.6337, allocations: 3.878 MB / 0.6586 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.824e-05/0.6338, allocations: 24 kB / 0.6586 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.6338, allocations: 4 kB / 0.6586 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-05/0.6338, allocations: 11.95 kB / 0.6587 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.6494, allocations: 5.956 MB / 0.6645 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/0.6494, allocations: 8.062 kB / 0.6645 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/0.6514, allocations: 435.4 kB / 0.6649 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005897/0.6573, allocations: 1.256 MB / 0.6661 GB, free: 368 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003633/0.6576, allocations: 99.94 kB / 0.6662 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/0.6687, allocations: 7.425 MB / 0.6735 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.6687, allocations: 4 kB / 0.6735 GB, free: 8.477 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01329/0.682, allocations: 5.032 MB / 0.6784 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005314/0.6826, allocations: 186.6 kB / 0.6786 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005781/0.6831, allocations: 52 kB / 0.6786 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002145/0.6853, allocations: 59.97 kB / 0.6787 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008364/0.6861, allocations: 237.6 kB / 0.6789 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000451/0.6866, allocations: 111.9 kB / 0.679 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001815/0.6884, allocations: 0.735 MB / 0.6797 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6884, allocations: 0 / 0.6797 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006075/0.6945, allocations: 1.5 MB / 0.6812 GB, free: 424 kB / 0.5137 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.01703/0.7115, allocations: 7.023 MB / 0.6881 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007963/0.7194, allocations: 3.251 MB / 0.6912 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.7195, allocations: 0 / 0.6912 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004732/0.7242, allocations: 1.832 MB / 0.693 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.7266, allocations: 408.8 kB / 0.6934 GB, free: 3.625 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04597/0.7726, allocations: 20.17 MB / 0.7131 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.7741, allocations: 1.033 MB / 0.7141 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002146/0.7762, allocations: 0.5085 MB / 0.7146 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001905/0.7781, allocations: 1.187 MB / 0.7158 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of SimCode: time 1.213e-06/0.7781, allocations: 0 / 0.7158 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3435/1.122, allocations: 76.17 MB / 0.7902 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.81/17.93, allocations: 7.562 kB / 0.7902 GB, free: 139.1 MB / 0.5606 GB " [Timeout remaining time 642] (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: 20.922810246236622] Failed to read output from testmodel.py, exit status != 0: 18.102375838905573 18.119736619 17.665662401 Calling exit ...