Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.0006855/0.0006855, allocations: 76.44 kB / 19.17 MB, free: 0.7305 MB / 13.93 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.0007173/0.0007173, allocations: 169.9 kB / 22.46 MB, free: 2.094 MB / 18.57 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 0.8377/0.8377, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.08176/0.08176, allocations: 17.46 MB / 276.6 MB, free: 11.76 MB / 266.7 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.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 411.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.81e-05/1.966e-05, allocations: 2.281 kB / 411.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.00707/0.00709, allocations: 10.21 MB / 421.8 MB, free: 6.125 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02345/0.03054, allocations: 29.73 MB / 451.5 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001825/0.03236, allocations: 38.47 kB / 451.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001391/0.03376, allocations: 0.6881 MB / 452.3 MB, free: 416 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007124/0.04088, allocations: 2.849 MB / 455.1 MB, free: 14.19 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009681/0.05056, allocations: 4.643 MB / 459.7 MB, free: 9.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004371/0.05493, allocations: 3.537 MB / 463.3 MB, free: 5.969 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.05653, allocations: 1.681 MB / 465 MB, free: 4.242 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.05874, allocations: 2.356 MB / 467.3 MB, free: 1.883 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.06018, allocations: 1.508 MB / 468.8 MB, free: 380 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003032/0.06048, allocations: 328 kB / 469.1 MB, free: 52 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007122/0.0676, allocations: 3.563 MB / 472.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004846/0.06809, allocations: 0.7748 MB / 473.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001365/0.06945, allocations: 1.154 MB / 474.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.08295, allocations: 7.936 MB / 482.6 MB, free: 2.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.08296, allocations: 0 / 482.6 MB, free: 2.582 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.08296, allocations: 0 / 482.6 MB, free: 2.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.668e-05/0.08303, allocations: 0 / 482.6 MB, free: 2.582 MB / 378.7 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.00475/0.08778, allocations: 3.674 MB / 486.2 MB, free: 14.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.08782, allocations: 16.02 kB / 486.3 MB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003047/0.08813, allocations: 355.2 kB / 486.6 MB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/0.08961, allocations: 0.6347 MB / 487.2 MB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001961/0.09157, allocations: 1.449 MB / 488.7 MB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.09173, allocations: 304.6 kB / 489 MB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002777/0.09201, allocations: 268.3 kB / 489.3 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00329/0.0953, allocations: 3.161 MB / 492.4 MB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.09533, allocations: 0 / 492.4 MB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001714/0.0955, allocations: 104 kB / 492.5 MB, free: 8.445 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-05/0.09554, allocations: 64 kB / 492.6 MB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004076/0.09961, allocations: 3.811 MB / 496.4 MB, free: 4.559 MB / 394.7 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.01018/0.1098, allocations: 8.194 MB / 0.4928 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002873/0.1127, allocations: 2.783 MB / 0.4955 GB, free: 9.426 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.1139, allocations: 1.227 MB / 0.4967 GB, free: 8.191 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008028/0.1219, allocations: 6.029 MB / 0.5026 GB, free: 2.129 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.1219, allocations: 56.5 kB / 0.5026 GB, free: 2.062 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005516/0.1225, allocations: 242.5 kB / 0.5028 GB, free: 1.824 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.358e-06/0.1225, allocations: 0 / 0.5028 GB, free: 1.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.02314/0.1456, allocations: 11.84 MB / 0.5144 GB, free: 5.945 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.1457, allocations: 77.41 kB / 0.5145 GB, free: 5.855 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.1468, allocations: 1.214 MB / 0.5157 GB, free: 4.629 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.1469, allocations: 73.7 kB / 0.5157 GB, free: 4.551 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005005/0.1474, allocations: 1.18 MB / 0.5169 GB, free: 3.355 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004892/0.1479, allocations: 0.8985 MB / 0.5178 GB, free: 2.449 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005691/0.1485, allocations: 0.5613 MB / 0.5183 GB, free: 1.879 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.1485, allocations: 301.1 kB / 0.5186 GB, free: 1.582 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.15, allocations: 1.009 MB / 0.5196 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.1516, allocations: 1.909 MB / 0.5215 GB, free: 14.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003038/0.1546, allocations: 3.196 MB / 0.5246 GB, free: 10.65 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/0.1547, allocations: 8 kB / 0.5246 GB, free: 10.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.006026/0.1607, allocations: 4.126 MB / 0.5286 GB, free: 6.453 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.1607, allocations: 16 kB / 0.5286 GB, free: 6.438 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.1607, allocations: 28 kB / 0.5286 GB, free: 6.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003031/0.1638, allocations: 1.352 MB / 0.53 GB, free: 5.043 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.165, allocations: 0.656 MB / 0.5306 GB, free: 4.391 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007022/0.172, allocations: 7.907 MB / 0.5383 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.1734, allocations: 95.98 kB / 0.5384 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/0.1737, allocations: 171.9 kB / 0.5386 GB, free: 11.85 MB / 458.7 MB 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.0009016/0.1746, allocations: 0.5087 MB / 0.5391 GB, free: 11.33 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005776/0.1751, allocations: 202.7 kB / 0.5393 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/0.1807, allocations: 3.884 MB / 0.5431 GB, free: 7.172 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.1807, allocations: 24 kB / 0.5431 GB, free: 7.148 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1807, allocations: 4 kB / 0.5431 GB, free: 7.145 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.1807, allocations: 11.95 kB / 0.5431 GB, free: 7.133 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008339/0.1891, allocations: 5.942 MB / 0.5489 GB, free: 1.043 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.1891, allocations: 0 / 0.5489 GB, free: 1.043 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009211/0.19, allocations: 435.8 kB / 0.5493 GB, free: 0.6172 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002802/0.1928, allocations: 1.271 MB / 0.5506 GB, free: 15.33 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/0.193, allocations: 95.94 kB / 0.5507 GB, free: 15.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006099/0.199, allocations: 7.413 MB / 0.5579 GB, free: 7.457 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1991, allocations: 0 / 0.5579 GB, free: 7.457 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00727/0.2063, allocations: 5.032 MB / 0.5628 GB, free: 2.273 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003932/0.2067, allocations: 182.6 kB / 0.563 GB, free: 2.094 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002049/0.2069, allocations: 52 kB / 0.563 GB, free: 2.043 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006492/0.2076, allocations: 63.97 kB / 0.5631 GB, free: 1.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003383/0.2079, allocations: 241.6 kB / 0.5633 GB, free: 1.742 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.208, allocations: 111.9 kB / 0.5634 GB, free: 1.633 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007305/0.2088, allocations: 0.7311 MB / 0.5641 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2088, allocations: 0 / 0.5641 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002902/0.2117, allocations: 1.504 MB / 0.5656 GB, free: 15.39 MB / 490.7 MB 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.009151/0.2208, allocations: 7.072 MB / 0.5725 GB, free: 8.16 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004418/0.2252, allocations: 3.247 MB / 0.5757 GB, free: 4.844 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2253, allocations: 0 / 0.5757 GB, free: 4.844 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.2272, allocations: 1.832 MB / 0.5775 GB, free: 2.965 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.2284, allocations: 398.8 kB / 0.5779 GB, free: 2.582 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1618/0.3902, allocations: 20.08 MB / 0.5975 GB, free: 144.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009932/0.3912, allocations: 1.035 MB / 0.5985 GB, free: 144.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001367/0.3926, allocations: 0.5022 MB / 0.599 GB, free: 144.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.3936, allocations: 1.193 MB / 0.6001 GB, free: 143.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3936, allocations: 0 / 0.6001 GB, free: 143.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07626/0.4699, allocations: 76.37 MB / 0.6747 GB, free: 77.51 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.517/9.987, allocations: 3.828 kB / 0.6747 GB, free: 77.51 MB / 490.7 MB " [Timeout remaining time 650] (rm -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.894981108605862] Failed to read output from testmodel.py, exit status != 0: 10.242246190086007 10.115856995 10.031381624 Calling exit ...